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 30, 2024
1 parent ce24a77 commit 3e433c6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pages/Generator/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ export function Generator() {
filteredProcessesList;

const zip = await createZip(
printerList
.filter((printer) => selectedPrinters.includes(printer.identifier))
.map((printer) => printer.profile),
selectedFilamentProfiles.map((filament) => filament.profile),
selectedProcessProfiles.map((process) => process.profile)
printerList.filter((printer) => selectedPrinters.includes(printer.identifier)).map((printer) => ({ name: printer.name, content: printer.profile })),
filamentList.filter((filament) => selectedFilament.includes(filament.identifier) || selectedFilament.length === 0).map((filament) => ({ name: filament.name, content: filament.profile })),
filteredProcessesList.filter((process) => selectedProcesses.includes(process.identifier) || selectedProcesses.length === 0).map((process) => ({ name: process.name, content: process.profile }))
);

saveAs(zip, "OpenNept4une.orca_printer");
};

Expand Down

0 comments on commit 3e433c6

Please sign in to comment.