Skip to content

Commit c8e2bb9

Browse files
authored
Merge pull request #59647 from nextcloud/fix/open-locally-error-message
fix(files): remove error message when closing the "Open locally" dialog
2 parents 64c1d17 + a3ebccb commit c8e2bb9

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

apps/files/src/actions/openLocallyAction.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ async function confirmLocalEditDialog(): Promise<'online' | 'local' | false> {
114114
])
115115
.build()
116116

117-
await dialog.show()
117+
try {
118+
await dialog.show()
119+
} catch (error) {
120+
logger.debug('Open locally dialog closed', { error })
121+
}
122+
118123
return result
119124
}

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)