Skip to content

Commit 7b28ea1

Browse files
authored
Merge pull request #13 from devforth/feature/AdminForth/1422/please-remove-this-modal-after
fix: close confirm dialog when no records are present
2 parents 523196a + 2ba635d commit 7b28ea1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

custom/VisionAction.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,10 @@ async function saveCurrentGenerated() {
15131513
});
15141514
touchRecords();
15151515
}
1516+
if (recordIds.value.length === 0) {
1517+
confirmDialog.value.close();
1518+
return;
1519+
}
15161520
} catch (error) {
15171521
console.error('Error saving data:', error);
15181522
isError.value = true;

0 commit comments

Comments
 (0)