mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Fix TypeError with integration
This commit is contained in:
parent
bb518e4ef5
commit
01440e82c6
@ -2174,7 +2174,7 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null
|
||||
a[k] = b[k];
|
||||
});
|
||||
};
|
||||
if (integrationConfig) {
|
||||
if (integrationConfig?.editorConfig) {
|
||||
let ec = integrationConfig.editorConfig;
|
||||
let c = APP.ooconfig.editorConfig.customization;
|
||||
copy(APP.ooconfig.editorConfig, ec);
|
||||
@ -2183,7 +2183,9 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null
|
||||
if (ec.editorConfig?.customization?.goback) {
|
||||
c.goback.blank = true;
|
||||
}
|
||||
c.forcesave = true;
|
||||
if (!privateData?.integrationConfig?.autosave) {
|
||||
c.forcesave = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Always hide right menu
|
||||
|
||||
Loading…
Reference in New Issue
Block a user