projects
/
examples
/
angular-tour-of-heroes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab66889
)
WIP: Deswegen wieder weg damit - der Fehler muss anders zu lösen sein...
author
Kai Moritz
<kai@juplo.de>
Sun, 5 Jul 2020 11:15:25 +0000
(13:15 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 5 Jul 2020 11:15:25 +0000
(13:15 +0200)
src/app/vorgang/vorgang.component.ts
patch
|
blob
|
history
diff --git
a/src/app/vorgang/vorgang.component.ts
b/src/app/vorgang/vorgang.component.ts
index
903ff6d
..
986b1b2
100644
(file)
--- a/
src/app/vorgang/vorgang.component.ts
+++ b/
src/app/vorgang/vorgang.component.ts
@@
-21,12
+21,7
@@
export class VorgangComponent implements OnInit {
private store: Store<{ vorgang: { vorgaenge: Vorgang[] }}>) {
this.vorgang$ = store.pipe(select('vorgang')).pipe(
tap((state) => console.log(`New state: ${JSON.stringify(state)}`)),
- map((state: State) => {
- if (state === undefined)
- return [];
- else
- return state.vorgaenge
- }));
+ map((state: State) => state.vorgaenge));
}
ngOnInit(): void {