From f68985148ca6a46a132138ec647db389013194a1 Mon Sep 17 00:00:00 2001 From: agriyadev5 Date: Mon, 7 Jun 2021 11:46:56 +0530 Subject: [PATCH] #438 Unable to select initial tool via URL parameters --- src/editor/ConfigObj.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/ConfigObj.js b/src/editor/ConfigObj.js index c36b84ff..a027330c 100644 --- a/src/editor/ConfigObj.js +++ b/src/editor/ConfigObj.js @@ -251,6 +251,7 @@ export default class ConfigObj { if (searchParams.has(`${prop}[color]`)) { // Restore back to original non-deparamed value to avoid color // strings being converted to numbers + if(this.urldata[prop] === undefined) { this.urldata[prop] = {}; } this.urldata[prop].color = searchParams.get(`${prop}[color]`); } });