mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
quick fix - variable declaration
This commit is contained in:
parent
b49ceaba4f
commit
92cf1a804e
@ -133,8 +133,8 @@ define([
|
||||
if (err) { return void console.error(err); }
|
||||
if (!Array.isArray(data.messages)) { return void console.error('Not an array!'); }
|
||||
|
||||
var messages = (data.messages || []).slice(initialCp || APP.ooconfig.documentType === 'spreadsheet' ? 0 : 1);
|
||||
let initialCp = cpIndex === sortedCp.length || cp ? !cp?.hash : undefined;
|
||||
var messages = (data.messages || []).slice(initialCp || APP.ooconfig.documentType === 'spreadsheet' ? 0 : 1);
|
||||
|
||||
if (config.debug) { console.log(data.messages); }
|
||||
id = id !== undefined ? id : getId();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user