Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmanbear authored Aug 8, 2024
1 parent 9794a91 commit 33ee629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Generator/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ export function Generator() {
});
}

// Create the ZIP file with selected printers, filaments, and processes
// Only map the filtered processes to their profiles
const zip = await createZip(
printerList
.filter((printer) => selectedPrinters.includes(printer.identifier))
.map((printer) => printer.profile),
filament.map((filament) => filament.profile),
processes.map((process) => process.profile),
processes.map((process) => process.profile), // This line now only maps the filtered processes
);

// Save the ZIP file
Expand Down

0 comments on commit 33ee629

Please sign in to comment.