Skip to content

Commit

Permalink
fix: fix text while decompressing the text
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu-deriv committed Nov 29, 2024
1 parent 19005aa commit 512cd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/ChartState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class ChartState {
restoreLayout() {
const id = this.mainStore.chart.chartId;
const compressedLayout = createObjectFromLocalStorage(`chart-layout-${id}`);
const layout: TLayout = JSON.parse(LZString.decompress(compressedLayout ?? undefined));
const layout: TLayout = JSON.parse(LZString.decompress(compressedLayout ?? ''));

if (!layout) {
this.clearLayout();
Expand Down

0 comments on commit 512cd4b

Please sign in to comment.