mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: remove error message when closing the "Open locally" dialog
catch the exception thrown by the "open locally" dialog when closed within the action itself, so that it does not produce an error message when caught by higher level logic Signed-off-by: dsyzov <sizovdmitrij@gmail.com>
This commit is contained in:
parent
13c8ccefa4
commit
b2463b9629
1 changed files with 7 additions and 2 deletions
|
|
@ -109,7 +109,12 @@ async function confirmLocalEditDialog(): Promise<'online'|'local'|false> {
|
|||
},
|
||||
])
|
||||
.build()
|
||||
|
||||
await dialog.show()
|
||||
|
||||
try {
|
||||
await dialog.show()
|
||||
} catch (error) {
|
||||
logger.debug('"Open locally" dialog closed')
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue