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 2a41db596d5ee715dc8ef563981f7ea3b6a09abf
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 @@ -949,7 +949,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