mirror of
https://github.com/mue/mue.git
synced 2026-07-07 14:17:09 +02:00
fix: Prevent duplicate installations in install function
This commit is contained in:
@@ -38,6 +38,12 @@ export function install(type, input, sideload, collection) {
|
||||
|
||||
console.log(`[Install] isNewInstall: ${isNewInstall}`);
|
||||
|
||||
// Prevent duplicate installations - if pack already exists, skip
|
||||
if (!isNewInstall) {
|
||||
console.log(`[Install] Pack ${input.display_name || input.name} already installed, skipping`);
|
||||
return;
|
||||
}
|
||||
|
||||
let refreshEvent = null;
|
||||
|
||||
const handler = getHandler(type);
|
||||
|
||||
Reference in New Issue
Block a user