Skip to content

Commit

Permalink
fix the filter
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarmazina committed Aug 29, 2023
1 parent 7eee18d commit b08761d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/story-editor/story-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ export class StoryEditorComponent implements OnInit, OnDestroy{
* Check: if the same background is used in different stories
*/
checkStoriesForBack(){
const usingBackground = this.stories.filter((s)=> s.background.name == this.selectedStory.background.name && s.background.name !== "New Background" && s.background.stepDefinitions.when.length !== 0)
const usingBackground = this.stories.filter((s)=> s !== null && s.background.name == this.selectedStory.background.name && s.background.name !== "New Background" && s.background.stepDefinitions.when.length !== 0)
return usingBackground;
}

Expand Down

0 comments on commit b08761d

Please sign in to comment.