File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ const { watchedPublicationsWithSales } = storeToRefs(collection());
394
394
const { conditions } = useCondition ();
395
395
const { t : $t } = useI18n ();
396
396
397
+ const router = useRouter ();
398
+
397
399
let clicks = $ref (0 );
398
400
let timer = $ref <NodeJS .Timeout >();
399
401
const doubleClickDelay = 500 ;
@@ -588,14 +590,15 @@ const deletePublicationIssues = async (issuecodesToDelete: string[]) => {
588
590
if (! readonly ) {
589
591
await updateCollectionMultipleIssues ({
590
592
issuecodes: issuecodesToDelete ,
591
- condition:
592
- conditions .find (({ dbValue }) => dbValue === null )?.dbValue ||
593
- " indefini" ,
593
+ condition: null ,
594
594
isToRead: false ,
595
595
isOnSale: false ,
596
596
purchaseId: null ,
597
597
});
598
598
selected = [];
599
+ if (! issues ?.length ) {
600
+ router .push (" /collection/show" );
601
+ }
599
602
}
600
603
};
601
604
You can’t perform that action at this time.
0 commit comments