Skip to content

Commit

Permalink
Merge pull request #233 from AdiAkhileshSingh15/develop
Browse files Browse the repository at this point in the history
Adds result-scan functions for 1st four checklist statements.
  • Loading branch information
lrasmus authored Oct 29, 2024
2 parents 8923bd1 + 3ca302d commit 1d1f27c
Show file tree
Hide file tree
Showing 8 changed files with 964 additions and 518 deletions.
16 changes: 1 addition & 15 deletions app/components/ProjectEntryPoint/ProjectEntryPoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ import { faFileImport, faShareFromSquare } from '@fortawesome/free-solid-svg-ico
import styles from './ProjectEntryPoint.css';
import AssetUtil from '../../utils/asset';

function findEntryPoints(asset, entryPointsList) {
if (asset.attributes && asset.attributes.entrypoint === true) {
entryPointsList.push(asset);
}
if (asset.children) {
asset.children.forEach((child) => {
findEntryPoints(child, entryPointsList);
});
}
}

const projectEntryPoint = (props) => {
const { assets, rootUri, onSelect } = props;

Expand All @@ -31,10 +20,7 @@ const projectEntryPoint = (props) => {
}
};

const entryPointsList = [];
if (assets) {
findEntryPoints(assets, entryPointsList);
}
const entryPointsList = AssetUtil.findEntryPointAssets(assets);

if (entryPointsList && entryPointsList.length > 0) {
return (
Expand Down
Loading

0 comments on commit 1d1f27c

Please sign in to comment.