Fix spreadsheet history when no checkpoint

This commit is contained in:
yflory 2020-09-29 17:54:33 +02:00
parent a10425299e
commit cdc7a868b6
2 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -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; }