Skip to content

Commit c582fc2

Browse files
authored
Fix loading of preset title panel callback (#3496)
1 parent 3513889 commit c582fc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tabs/presets/TitlePanel/PresetTitlePanel.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ export default class PresetTitlePanel
125125

126126
i18n.localizePage();
127127
this._domWrapperDiv.toggle(true);
128-
this._onLoadedCallback?.();
128+
129+
if (typeof this._onLoadedCallback === 'function') {
130+
this._onLoadedCallback();
131+
}
129132
}
130133

131134
_readDom()

0 commit comments

Comments
 (0)