Skip to content

Commit

Permalink
avniproject/avni-client#1107 | Suhas/Joy | Remove unnecessary deseria…
Browse files Browse the repository at this point in the history
…lization of selectedValues in CustomDashboardCache

Removed @ungap/structured-clone as a dependency
  • Loading branch information
1t5j0y committed Sep 28, 2023
1 parent 73e1440 commit 0f1ebbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,5 @@
"nyc": {
"sourceMap": false,
"instrument": false
},
"dependencies": {
"@ungap/structured-clone": "^1.2.0"
}
}
3 changes: 1 addition & 2 deletions src/CustomDashboardCache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import BaseEntity from "./BaseEntity";

import {deserialize} from '@ungap/structured-clone';
class CustomDashboardCache extends BaseEntity{

static schema = {
Expand Down Expand Up @@ -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() {
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]":
version "1.9.0"
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964"
Expand Down

0 comments on commit 0f1ebbe

Please sign in to comment.