AW-6495 Exception editor croppingscheme: do not use 'item' in route
This commit is contained in:
parent
ed1e1478b2
commit
d4a230f96d
@ -139,10 +139,17 @@ export class AppCommonEffects {
|
|||||||
const itemType = itemtypes[a.item.itemType];
|
const itemType = itemtypes[a.item.itemType];
|
||||||
var editor = itemType && itemType.editor ? itemType.editor : editor;
|
var editor = itemType && itemType.editor ? itemType.editor : editor;
|
||||||
}
|
}
|
||||||
this.router$.navigate(['/editor',editor,'item', a.item.code])
|
if (editor == 'croppingscheme') {
|
||||||
|
// Exeception: no 'item' in route
|
||||||
|
this.router$.navigate(['/editor', editor, a.item.code])
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.router$.navigate(['/editor', editor, 'item', a.item.code])
|
||||||
|
}
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
)));
|
)
|
||||||
|
));
|
||||||
|
|
||||||
viewItem$ = createEffect(() => this.actions$.pipe(
|
viewItem$ = createEffect(() => this.actions$.pipe(
|
||||||
ofType(appCommonActions.VIEWITEM),
|
ofType(appCommonActions.VIEWITEM),
|
||||||
|
Loading…
Reference in New Issue
Block a user