Skip to content

Commit ebcc974

Browse files
committed
fix: correctly classify casks when importing Brewfile
1 parent 8109652 commit ebcc974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/dashboard/+page.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,10 @@
369369
custom_script: '',
370370
dotfiles_repo: ''
371371
};
372+
const caskSet = new Set<string>(data.casks || []);
372373
const importMap = new Map<string, string>();
373374
for (const pkg of data.packages) {
374-
importMap.set(pkg, 'formula');
375+
importMap.set(pkg, caskSet.has(pkg) ? 'cask' : 'formula');
375376
}
376377
selectedPackages = importMap;
377378
showModal = true;

0 commit comments

Comments
 (0)