diff options
author | crupest <crupest@outlook.com> | 2021-01-12 22:01:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-12 22:01:51 +0800 |
commit | 07eb0d4d777c36da7ea62ea55a2ac3f68e899694 (patch) | |
tree | a8692dd0d0673089dc4319aa8bb548dc3743c590 /FrontEnd/src/app/services | |
parent | 11724294f107b23c68b0718530262664ea5e0efc (diff) | |
download | timeline-07eb0d4d777c36da7ea62ea55a2ac3f68e899694.tar.gz timeline-07eb0d4d777c36da7ea62ea55a2ac3f68e899694.tar.bz2 timeline-07eb0d4d777c36da7ea62ea55a2ac3f68e899694.zip |
...
Diffstat (limited to 'FrontEnd/src/app/services')
-rw-r--r-- | FrontEnd/src/app/services/timeline.ts | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/FrontEnd/src/app/services/timeline.ts b/FrontEnd/src/app/services/timeline.ts index 7d239fbf..4e2530cc 100644 --- a/FrontEnd/src/app/services/timeline.ts +++ b/FrontEnd/src/app/services/timeline.ts @@ -175,15 +175,12 @@ export class TimelineService { changeTimelineProperty( timelineName: string, req: TimelineChangePropertyRequest - ): Observable<TimelineInfo> { - return from( - getHttpTimelineClient() - .patchTimeline(timelineName, req) - .then((timeline) => { - void this.syncTimeline(timelineName); - return timeline; - }) - ); + ): Promise<void> { + return getHttpTimelineClient() + .patchTimeline(timelineName, req) + .then(() => { + void this.syncTimeline(timelineName); + }); } deleteTimeline(timelineName: string): Observable<unknown> { |