Skip to content

Commit

Permalink
3 times a charm - #161
Browse files Browse the repository at this point in the history
  • Loading branch information
GabiGrin committed Oct 6, 2024
1 parent 69601da commit 363bb7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions dev-server/src/service/scan-importable-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ export async function scanImportableNodes(
}
}, {});

console.log({ builtInStdLib, depsNodes, localNodes });

return {
importables: { ...builtInStdLib, ...depsNodes, ...localNodes },
errors: allErrors,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ export const AddNodeMenu: React.FC<AddNodeMenuProps> = (props) => {
return acc;
}, {});

const internalFiles = importables
.filter(isInternal)
.map((importable) => importable.module);
const internalFiles = Array.from(
new Set(
importables.filter(isInternal).map((importable) => importable.module)
)
);

setFilterStructure({
external: Object.entries(namespacedExternals).map(
Expand Down

0 comments on commit 363bb7e

Please sign in to comment.