-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(UnifiedSearch): request data only when opening modal #50241
base: master
Are you sure you want to change the base?
Conversation
e8171b3
to
ebb170f
Compare
Signed-off-by: Maksim Sukharev <[email protected]>
5bca14e
to
627b342
Compare
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.
🐘
/compile / |
Signed-off-by: nextcloud-command <[email protected]>
.catch(error => { | ||
console.error(error) | ||
}) |
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.
.catch(error => { | |
console.error(error) | |
}) | |
.catch((error) => { | |
unifiedSearchLogger.error(error) | |
}) |
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.
nit pick otherwise fine
Summary
Two requests are always being made on page opening/reload, even though search modal wasn't yet opened once (and there's no guarantee a user would use it until next page reload). So data should be fetched only when modal is actually opened
Checklist