Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix AxiosError when deleting photo in viewer
Fixes issue #1591: Axios error when deleting photos in viewer

Signed-off-by: umgfoin <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
umgfoin authored and nextcloud-command committed Feb 27, 2023
commit 215695f7b6130b734e46c102d471bc1b6e91d516
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

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