mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
fix(api): fix TypeError with integration API
This commit is contained in:
parent
b3b0593b48
commit
7e50db3df3
@ -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();
|
||||
|
||||
@ -103,7 +103,7 @@ define([
|
||||
|
||||
const sendMyID = () => {
|
||||
const user = Util.clone(privateData?.integrationConfig?.
|
||||
_?.editorConfig?.user);
|
||||
_?.editorConfig?.user) || {};
|
||||
user.readOnly = isView;
|
||||
execCommand?.('SEND', {
|
||||
msg: 'MYID',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user