refac
This commit is contained in:
1 parent
b1d5b3b28e
commit
1f205a8441
1 file changed
+2
-2
@@ -179,8 +179,8 @@
|
||||
try {
|
||||
await deletePromptHistoryVersion(localStorage.token, prompt.id, historyId);
|
||||
toast.success($i18n.t('Version deleted'));
|
||||
// Reload history
|
||||
await loadHistory();
|
||||
// Reload history from scratch
|
||||
await loadHistory(true);
|
||||
// Reset selection if deleted entry was selected
|
||||
if (selectedHistoryEntry?.id === historyId) {
|
||||
selectedHistoryEntry = history.length > 0 ? history[0] : null;
|
||||
|
||||
Reference in new issue
Block a user