fix delete show song and not deleted order song causes crash
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="start" type="js.build_tools.npm" nameIsGenerated="true">
|
<configuration default="false" name="start" type="js.build_tools.npm" nameIsGenerated="true">
|
||||||
<package-json value="$PROJECT_DIR$/package.json"/>
|
<package-json value="$PROJECT_DIR$/package.json" />
|
||||||
<command value="run"/>
|
<command value="run" />
|
||||||
<scripts>
|
<scripts>
|
||||||
<script value="start"/>
|
<script value="start" />
|
||||||
</scripts>
|
</scripts>
|
||||||
<node-interpreter value="project"/>
|
<node-interpreter value="project" />
|
||||||
<envs/>
|
<envs />
|
||||||
<method v="2"/>
|
<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>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ export class DocxService {
|
|||||||
sections: Section[];
|
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};
|
return {songs, show, user, config};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user