fix delete show song and not deleted order song causes crash
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<envs />
|
||||
<EXTENSION ID="com.intellij.lang.javascript.buildTools.npm.rc.StartBrowserRunConfigurationExtension">
|
||||
<browser name="98ca6316-2f89-46d9-a9e5-fa9e2b0625b3" start="true" with-js-debugger="true" url="http://localhost.4200" />
|
||||
</EXTENSION>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
|
||||
@@ -213,7 +213,7 @@ export class DocxService {
|
||||
sections: Section[];
|
||||
}
|
||||
);
|
||||
const songs = show.order.map(_ => songsLoaded.filter(f => f.showSong.id === _)[0]);
|
||||
const songs = show.order.map(_ => songsLoaded.find(f => f.showSong.id === _)).filter(_ => !!_);
|
||||
return {songs, show, user, config};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user