Skip to content
Snippets Groups Projects
Unverified Commit d23e96b8 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #17433 from nextcloud/bugfix/uncaught-promise-navigationduplicated

NavigationDuplicated: catch uncaught (in promise)
parents aafc4a34 ce454e09
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -148,14 +148,18 @@ export default { ...@@ -148,14 +148,18 @@ export default {
}, },
methods: { methods: {
showAppDetails(event) { async showAppDetails(event) {
if (event.currentTarget.tagName === 'INPUT' || event.currentTarget.tagName === 'A') { if (event.currentTarget.tagName === 'INPUT' || event.currentTarget.tagName === 'A') {
return return
} }
this.$router.push({ try {
name: 'apps-details', await this.$router.push({
params: { category: this.category, id: this.app.id } name: 'apps-details',
}) params: { category: this.category, id: this.app.id }
})
} catch (e) {
// we already view this app
}
}, },
prefix(prefix, content) { prefix(prefix, content) {
return prefix + '_' + content return prefix + '_' + content
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment