-
-
Notifications
You must be signed in to change notification settings - Fork 906
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 loading of preset title panel callback #3496
Fix loading of preset title panel callback #3496
Conversation
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
How to reproduce the bug before PR? |
Just enter the presets tab and look at console. |
@@ -125,7 +125,10 @@ export default class PresetTitlePanel | |||
|
|||
i18n.localizePage(); | |||
this._domWrapperDiv.toggle(true); | |||
this._onLoadedCallback?.(); | |||
|
|||
if (this._onLoadedCallback === typeof Function) { |
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.
Feels that there is extra indirection in this logic. Something like the following is a bit simplified.
if (this._onLoadedCallback === typeof Function) { | |
if (typeof this._onLoadedCallback === 'function') { |
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.
Fixed 👍
3fcc175
to
7a11f4a
Compare
7a11f4a
to
abc538b
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Do you want to test this code? Here you have an automated build: |
Fixes:
@Benky please have a look.