mirror of https://github.com/xwiki-labs/cryptpad
Fix conflict when a user was reverting the latest patch from someone else
This commit is contained in:
parent
8f849d8d4a
commit
b166c70a5f
|
@ -259,6 +259,9 @@ define([
|
|||
if (content === UNINITIALIZED) { return; }
|
||||
throw new Error("Content must be an object or array, type is " + typeof(content));
|
||||
}
|
||||
|
||||
oldContent = content;
|
||||
|
||||
if (Array.isArray(content)) {
|
||||
// Pad
|
||||
content.push({ metadata: cpNfInner.metadataMgr.getMetadataLazy() });
|
||||
|
|
Loading…
Reference in New Issue