sonar low

This commit is contained in:
Cindy Chang
2024-07-26 10:48:38 +08:00
parent 2ca4fdd0c6
commit a5f271ccc8
7 changed files with 6 additions and 10 deletions

View File

@@ -277,7 +277,6 @@ export default defineStore('filesStore', {
break;
}
try {
const response = await axios.delete(api);
await this.fetchAllFiles();
await deleteSuccess();
} catch(error) {
@@ -296,7 +295,6 @@ export default defineStore('filesStore', {
loading.isLoading = true;
api = `/api/deletion/${id}`;
try {
const response = await axios.delete(api);
} catch(error) {
apiError(error, 'Failed to Remove a Deletion Record.')
} finally {