Skip to content

Commit

Permalink
Fix AxiosError when deleting photo in viewer
Browse files Browse the repository at this point in the history
Fixes issue #1591: Axios error when deleting photos in viewer

Signed-off-by: umgfoin <umgfoin@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
umgfoin authored and backportbot-nextcloud[bot] committed Feb 27, 2023
1 parent 42a4cb5 commit a1bfb10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ export default {
async onDelete() {
try {
const fileid = this.currentFile.fileid
const url = this.source ?? this.root + this.currentFile.filename
const url = this.source ?? this.currentFile.davPath
await axios.delete(url)
emit('files:file:deleted', { fileid })
Expand Down

0 comments on commit a1bfb10

Please sign in to comment.