diff --git a/package.json b/package.json index 55b6650..56716af 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,5 @@ "nyc": { "sourceMap": false, "instrument": false - }, - "dependencies": { - "@ungap/structured-clone": "^1.2.0" } } diff --git a/src/CustomDashboardCache.js b/src/CustomDashboardCache.js index ba75b4c..931f712 100644 --- a/src/CustomDashboardCache.js +++ b/src/CustomDashboardCache.js @@ -1,6 +1,5 @@ import BaseEntity from "./BaseEntity"; -import {deserialize} from '@ungap/structured-clone'; class CustomDashboardCache extends BaseEntity{ static schema = { @@ -111,7 +110,7 @@ class CustomDashboardCache extends BaseEntity{ } getSelectedValues() { - return this.selectedValuesJSON && deserialize(JSON.parse(this.selectedValuesJSON)) || {}; + return this.selectedValuesJSON && JSON.parse(this.selectedValuesJSON) || {}; } getFilterErrors() { diff --git a/yarn.lock b/yarn.lock index cb54e84..d9eba44 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1029,11 +1029,6 @@ dependencies: "@types/yargs-parser" "*" -"@ungap/structured-clone@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" - integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== - "@webassemblyjs/ast@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964"