fix mismatch between file content and selection

This commit is contained in:
vcoppe
2024-06-11 22:47:41 +02:00
parent e0fd6aa18b
commit 57c1635eb7

View File

@@ -43,7 +43,7 @@
let fileStore = $fileObservers.get(fileId);
if (fileStore) {
let file = get(fileStore)?.file;
if (file) {
if (file && trackIndex < file.trk.length) {
canMergeTraces = file.trk[trackIndex].getSegments().length > 1;
} else {
canMergeTraces = false;