-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: closing editors on search result page #9918
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
@@ -186,6 +187,7 @@ export default defineComponent({ | |||
driveAliasAndItem | |||
}, | |||
query: { | |||
...unref(currentRoute).query, | |||
fileId: id, | |||
shareId: space.shareId, | |||
...(unref(currentRoute).query?.app && { app: unref(currentRoute).query?.app }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This here and above becomes unnecessary with your change, I'm wondering if this is really what we want or if this might cause issues somewhere, e.g. with the context route query params...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
I'm wondering if this is really what we want or if this might cause issues somewhere
You mean when re-setting all of the current route's query params? I decided against this initially. But apparently now other things break because params will get lost :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, maybe we can filter out some... iirc we had issues in some bizzare place when we had implemented it like this inititially, maybe login/logout...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, misreading the diff.. issue happened in closeApp iirc. So if this is feally only overriding a few params but stays on the same page l otherwise, it might be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems so, at least I didn't find any other issues for now.
da9ae2a
to
8700cde
Compare
SonarCloud Quality Gate failed. 1 Bug 0.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
…ult-page fix: closing editors on search result page
Description
We noticed this error in the ocis pipeline: https://drone.owncloud.com/owncloud/ocis/28475/40/12. For some reason it didn't fail in Web...
Related Issue
Types of changes