Skip to content

Commit a86a832

Browse files
committed
feat: reloading toc will clear startEpoch and endEpoch
1 parent 30fd20b commit a86a832

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eln/Toc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ class Toc {
120120
const sampleFilter = localStorage.getItem(cookieName)
121121
? JSON.parse(localStorage.getItem(cookieName))
122122
: defaultSampleFilter;
123+
delete sampleFilter.startEpoch;
124+
delete sampleFilter.endEpoch;
123125
API.createData(varName, sampleFilter);
124126

125127
this.updateOptions(sampleFilter);

0 commit comments

Comments
 (0)