fix(api): fix TypeError with integration API

This commit is contained in:
yflory 2026-05-13 14:49:36 +02:00
parent b3b0593b48
commit 7e50db3df3
2 changed files with 6 additions and 2 deletions

View File

@ -3808,8 +3808,12 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null
const integrationHasUnsavedChanges = function(unsavedChanges, cb) {
integrationChannel.query('Q_INTEGRATION_HAS_UNSAVED_CHANGES', unsavedChanges, cb);
};
const onUserlistChange = (list) => {
integrationChannel.event('Q_INTEGRATION_USERLIST_CHANGE', list);
};
var inte = common.createIntegration(integrationSave,
integrationHasUnsavedChanges);
integrationHasUnsavedChanges,
onUserlistChange);
if (inte && cfg.autosave) {
evIntegrationSave.reg(function () {
inte.changed();

View File

@ -103,7 +103,7 @@ define([
const sendMyID = () => {
const user = Util.clone(privateData?.integrationConfig?.
_?.editorConfig?.user);
_?.editorConfig?.user) || {};
user.readOnly = isView;
execCommand?.('SEND', {
msg: 'MYID',