aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/data/timeline.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-07 00:32:35 +0800
committerGitHub <noreply@github.com>2020-08-07 00:32:35 +0800
commit394ba7b875e93ec571f92e808ec0ec80298d8a23 (patch)
tree7b308196520523bf178c2b3e2351544948fa238f /Timeline/ClientApp/src/app/data/timeline.ts
parentc04f513f9a7cdbb406181e2c3112b3af73a3e249 (diff)
parent3405e9d98e9e31a656e0da71992e5460874658be (diff)
downloadtimeline-394ba7b875e93ec571f92e808ec0ec80298d8a23.tar.gz
timeline-394ba7b875e93ec571f92e808ec0ec80298d8a23.tar.bz2
timeline-394ba7b875e93ec571f92e808ec0ec80298d8a23.zip
Merge pull request #134 from crupest/offline-user
Make user offline usable.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/timeline.ts')
-rw-r--r--Timeline/ClientApp/src/app/data/timeline.ts2
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);