Jelajahi Sumber

fix: Model being removed with 1 remaining usage

Owen Diffey 3 minggu lalu
induk
melakukan
fb265e5264
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      frontend/src/stores/model.ts

+ 1 - 1
frontend/src/stores/model.ts

@@ -254,7 +254,7 @@ export const useModelStore = defineStore("model", () => {
 
 			model.removeUse();
 
-			if (model.getUses() > 1) return;
+			if (model.getUses() > 0) return;
 
 			// TODO only do this after a grace period
 			removeModels.push(model);