Skip to content

Commit

Permalink
Update compileFilamentList.js
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmanbear authored Aug 30, 2024
1 parent 57f9403 commit 74eec0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Generator/compileFilamentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ export default async function compileFilamentList() {
const filaments = import.meta.glob('../../profiles/filaments/*.json');
const filamentList = await Promise.all(Object.keys(filaments).map(async (key) => {
const profile = await filaments[key]();
console.log("Loaded filament profile:", profile); // Log the loaded profile content
console.log("Loaded filament profile:", profile); // Verify the loaded profile
return {
name: profile.name.replace("-OpenNept4une", ""),
identifier: key.split('/').pop().replace('.json', ''),
profile: profile // Ensure the profile is fully loaded
identifier: key.split('/').pop().replace('.json', '').trim(), // Ensure identifiers are trimmed
profile: profile
};
}));
return filamentList;
Expand Down

0 comments on commit 74eec0b

Please sign in to comment.