diff --git a/package-lock.json b/package-lock.json index 51978ab4..e81735cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@json2csv/plainjs": "^7.0.1", "@reduxjs/toolkit": "^1.9.5", "@shlinkio/shlink-frontend-kit": "^0.2.0", - "@shlinkio/shlink-web-component": "^0.1.1", + "@shlinkio/shlink-web-component": "^0.2.0", "bootstrap": "5.2.3", "bottlejs": "^2.0.1", "classnames": "^2.3.2", @@ -3024,9 +3024,9 @@ } }, "node_modules/@shlinkio/shlink-web-component": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.1.1.tgz", - "integrity": "sha512-N59LT9KCLPkPvPDPdS5EVvpPg0/eQUf1QuHewVZNK3Ee3XxAqoNK5ssHTuPX/xFDvzPmROEQWxIdcuma5+6e4w==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.2.0.tgz", + "integrity": "sha512-7yOTC7VyQwcSE++7nzdfrZIpfl/1vtsyxUcz7SEh7tC1xbUzjjiUgkAJHXQ6SsAbbYWHEt64nkw2gv5m8Iyq7g==", "dependencies": { "@json2csv/plainjs": "^7.0.1", "bottlejs": "^2.0.1", @@ -12630,9 +12630,9 @@ } }, "@shlinkio/shlink-web-component": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.1.1.tgz", - "integrity": "sha512-N59LT9KCLPkPvPDPdS5EVvpPg0/eQUf1QuHewVZNK3Ee3XxAqoNK5ssHTuPX/xFDvzPmROEQWxIdcuma5+6e4w==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.2.0.tgz", + "integrity": "sha512-7yOTC7VyQwcSE++7nzdfrZIpfl/1vtsyxUcz7SEh7tC1xbUzjjiUgkAJHXQ6SsAbbYWHEt64nkw2gv5m8Iyq7g==", "requires": { "@json2csv/plainjs": "^7.0.1", "bottlejs": "^2.0.1", diff --git a/package.json b/package.json index 2eec4282..130f5627 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@json2csv/plainjs": "^7.0.1", "@reduxjs/toolkit": "^1.9.5", "@shlinkio/shlink-frontend-kit": "^0.2.0", - "@shlinkio/shlink-web-component": "^0.1.1", + "@shlinkio/shlink-web-component": "^0.2.0", "bootstrap": "5.2.3", "bottlejs": "^2.0.1", "classnames": "^2.3.2", diff --git a/src/utils/services/LocalStorage.ts b/src/utils/services/LocalStorage.ts index 9c404e07..c3278c7d 100644 --- a/src/utils/services/LocalStorage.ts +++ b/src/utils/services/LocalStorage.ts @@ -6,7 +6,6 @@ export class LocalStorage { public readonly get = (key: string): T | undefined => { const item = this.localStorage.getItem(buildPath(key)); - return item ? JSON.parse(item) as T : undefined; };