diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-07-26 13:04:59 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-07-26 13:04:59 +0200 |
commit | a9eb9ea2c330d4b516d1b53d5b0628d735cb2e3c (patch) | |
tree | 75840973dde3cb97432727b7e80ac85623f92840 | |
parent | cd63a8eafa7da59e11d141c3c879f791bb826457 (diff) |
fix crash on slide deletion
-rw-r--r-- | pages/editor.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/editor.tsx b/pages/editor.tsx index 67595f3..c6d895a 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -1184,7 +1184,7 @@ function SlideSettings() { selection = selection.map(slide => { if (slide.value.type as slideTypes | 'loopBegin' != 'loopBegin') return slide; return global.timeline.workingTimeline.find(s => s.value.id == slide.value.id && s.value.type == 'loop'); - }).filter((value, index, arr) => arr.indexOf(arr.find(s => s.value.id == value.value.id)) == index); + }).filter((value, index, arr) => arr.indexOf(arr.find(s => s?.value.id == value?.value.id)) == index); var multipleSlides = selection.length > 1; var slideType = selection.length > 0 ? selection[0].value.type : ''; |