From 9c0458c733ac3c7186688770045f8c41dfa235e5 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 7 Aug 2020 00:24:34 +0800 Subject: Fix a bug in timeline service. --- Timeline/ClientApp/src/app/data/timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Timeline/ClientApp/src') 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 { - const cache = await dataStorage.getItem(timelineName); const key = this.getTimelineKey(timelineName); + const cache = await dataStorage.getItem(key); const save = (cache: TimelineCache): Promise => dataStorage.setItem(key, cache); -- cgit v1.2.3