From 9ee0d2db90f80102374a03345737480816810bd7 Mon Sep 17 00:00:00 2001 From: Bauke Date: Thu, 27 Oct 2022 21:30:43 +0200 Subject: [PATCH] Explicitly parse redirects in the editor. --- source/options/components/editor.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/options/components/editor.ts b/source/options/components/editor.ts index 223a7c3..c817960 100644 --- a/source/options/components/editor.ts +++ b/source/options/components/editor.ts @@ -74,7 +74,14 @@ export default class Editor extends Component { }; parseRedirect = (): Redirect => { - const redirect = parseRedirect(this.state); + const redirect = parseRedirect({ + enabled: this.state.enabled, + id: this.state.id, + matcherType: this.state.matcherType, + matcherValue: this.state.matcherValue, + redirectType: this.state.redirectType, + redirectValue: this.state.redirectValue, + }); if (redirect === undefined) { throw new Error('Failed to parse redirect'); }