aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/data/DataHub.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-10 16:10:05 +0800
committercrupest <crupest@outlook.com>2020-08-10 16:10:05 +0800
commite1b260e3e04341703944a9c1167c2546ff514fb9 (patch)
treeebff0bd4834b9e3288cd511b23e05f62d4d438c3 /Timeline/ClientApp/src/app/data/DataHub.ts
parenta69514dbef806bf1ee531cac3a7a9fee18162f2b (diff)
downloadtimeline-e1b260e3e04341703944a9c1167c2546ff514fb9.tar.gz
timeline-e1b260e3e04341703944a9c1167c2546ff514fb9.tar.bz2
timeline-e1b260e3e04341703944a9c1167c2546ff514fb9.zip
Make data line not destroyable when syncing.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/DataHub.ts')
-rw-r--r--Timeline/ClientApp/src/app/data/DataHub.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/Timeline/ClientApp/src/app/data/DataHub.ts b/Timeline/ClientApp/src/app/data/DataHub.ts
index fd6b65d7..bfb96d1a 100644
--- a/Timeline/ClientApp/src/app/data/DataHub.ts
+++ b/Timeline/ClientApp/src/app/data/DataHub.ts
@@ -88,6 +88,7 @@ export class DataLine<TData> {
return (
this._observers.length === 0 &&
+ !this._syncingSubject.value &&
(customDestroyable != null ? customDestroyable(this._current) : true)
);
}