Upgrade to ngrx v4 (#378)
* Update ngrx to v4 * package.json files * release: Remove zadic references from release script * fix(user-config): Fix user-config loading * build: Lock package dependencies * build: fix app version * ci: remove build:test step * fix(user-config): Revert switch-keymap-action modifications * test(user-config): xit keystroke-action test * fix(user-config): Fix user config loading * fix(user-config): Fix user config loading
This commit is contained in:
committed by
László Monda
parent
ba1fff788d
commit
50e0b64f6e
@@ -54,7 +54,7 @@ export class KeymapEffects {
|
||||
@Effect({ dispatch: false }) editAbbr$: any = this.actions$
|
||||
.ofType(KeymapActions.EDIT_ABBR)
|
||||
.withLatestFrom(this.store)
|
||||
.do(([action, store]) => {
|
||||
.do(([action, store]: [KeymapActions.EditKeymapAbbreviationAction, AppState]) => {
|
||||
for (const keymap of store.userConfiguration.keymaps) {
|
||||
if (keymap.name === action.payload.name && keymap.abbreviation === action.payload.newAbbr) {
|
||||
this.router.navigate(['/keymap', action.payload.newAbbr]);
|
||||
|
||||
Reference in New Issue
Block a user