Explore: Remove redundant decodeURI and fix urls (#28697)

* Remove redundant path URIdecoding

* Remove redundant comments
This commit is contained in:
Ivana Huckova
2020-11-02 18:14:57 +01:00
committed by GitHub
parent 87ba1b67b7
commit f71f03bf94
2 changed files with 4 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ export const safeParseJson = (text?: string): any | undefined => {
}
try {
return JSON.parse(decodeURI(text));
return JSON.parse(text);
} catch (error) {
console.error(error);
}