Skip to content

Commit

Permalink
fix: parameter numeration in deeplinks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jan 10, 2024
1 parent 696bb76 commit 981df93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/plugins/ui/urlRequestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export default (store) => {
const method = url.path.replace('/', '');
const callbackUrl = new URL(url.query.callback);
const lastParamIdx = Math.max(
0,
-1,
...Array.from(Object.keys(url.query))
.map((key) => key.startsWith('param') && +key.replace('param', '')),
);
const params = times(
lastParamIdx,
lastParamIdx + 1,
(idx) => JSON.parse(decodeURIComponent(url.query[`param${idx}`])),
);
const reply = ({ result, error }) => {
Expand Down

0 comments on commit 981df93

Please sign in to comment.