diff options
author | crupest <crupest@outlook.com> | 2020-08-07 00:24:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-07 00:24:34 +0800 |
commit | 9c0458c733ac3c7186688770045f8c41dfa235e5 (patch) | |
tree | 915845a8abc1114c3a7a5acddb4824b2725a4fd7 | |
parent | 61f3c5a591688087ad1af114048f8574a13b7290 (diff) | |
download | timeline-9c0458c733ac3c7186688770045f8c41dfa235e5.tar.gz timeline-9c0458c733ac3c7186688770045f8c41dfa235e5.tar.bz2 timeline-9c0458c733ac3c7186688770045f8c41dfa235e5.zip |
Fix a bug in timeline service.
-rw-r--r-- | Timeline/ClientApp/src/app/data/timeline.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/ClientApp/src/app/data/timeline.ts b/Timeline/ClientApp/src/app/data/timeline.ts index 508363a4..c0d2141f 100644 --- a/Timeline/ClientApp/src/app/data/timeline.ts +++ b/Timeline/ClientApp/src/app/data/timeline.ts @@ -156,8 +156,8 @@ export class TimelineService { private async doFetchAndCacheTimeline(
timelineName: string
): Promise<FetchAndCacheTimelineResult> {
- const cache = await dataStorage.getItem<TimelineCache | null>(timelineName);
const key = this.getTimelineKey(timelineName);
+ const cache = await dataStorage.getItem<TimelineCache | null>(key);
const save = (cache: TimelineCache): Promise<TimelineCache> =>
dataStorage.setItem<TimelineCache>(key, cache);
|