Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 2462e5c

Browse files
committed
Remove default symbol + keep Chart in memory
1 parent 24443fc commit 2462e5c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/botPage/view/Dialogs/Chart.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class ChartContent extends PureComponent {
4141
this.state = {
4242
chartType : 'mountain',
4343
granularity: 0,
44-
symbol : 'R_100',
4544
barrierType: undefined,
4645
high : undefined,
4746
low : undefined,

src/botPage/view/View.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import GTM from '../../common/gtm';
4343
import { saveBeforeUnload } from './blockly/utils';
4444

4545
let realityCheckTimeout;
46+
let chart;
4647

4748
const api = generateLiveApiInstance();
4849

@@ -419,7 +420,10 @@ export default class View {
419420
});
420421

421422
$('#chartButton').click(() => {
422-
const chart = new Chart(api);
423+
if (!chart) {
424+
chart = new Chart(api);
425+
}
426+
423427
chart.open();
424428
});
425429

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy