Fix spreadsheet history when no checkpoint

pull/1/head
yflory 4 years ago
parent a10425299e
commit cdc7a868b6

@ -73,6 +73,9 @@
.cp-history-timeline-actions {
margin-left: 21px !important;
}
.cp-toolbar-history-actions {
align-items: baseline !important;
}
}
&.cp-smallpatch {
.cp-history-snapshot {

@ -30,7 +30,8 @@ define([
return hashes[a].index - hashes[b].index;
});
var endWithCp = config.onlyoffice.lastHash === hashes[sortedCp[sortedCp.length - 1]].hash;
var endWithCp = sortedCp.length &&
config.onlyoffice.lastHash === hashes[sortedCp[sortedCp.length - 1]].hash;
var fillOO = function (id, messages) {
if (!id) { return; }

Loading…
Cancel
Save