aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/animationtimeline/Timeline.tsx
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-01-20 20:07:48 -0500
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-01-20 20:07:48 -0500
commit7b49bca26f95e7bf1e878d4987f061511a5def39 (patch)
treeb160034ebfd770c73071203410b468778fa93697 /src/client/views/animationtimeline/Timeline.tsx
parente4c9218e217b617e513259cac90b077431890eaa (diff)
parent68785a97178d229935c0429791081d7c09312dc3 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into filters
Diffstat (limited to 'src/client/views/animationtimeline/Timeline.tsx')
-rw-r--r--src/client/views/animationtimeline/Timeline.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx
index 093310755..66afad0ac 100644
--- a/src/client/views/animationtimeline/Timeline.tsx
+++ b/src/client/views/animationtimeline/Timeline.tsx
@@ -12,6 +12,7 @@ import "./Timeline.scss";
import { TimelineOverview } from "./TimelineOverview";
import { Track } from "./Track";
import clamp from "../../util/clamp";
+import { DocumentType } from "../../documents/DocumentTypes";
/**
* Timeline class controls most of timeline functions besides individual keyframe and track mechanism. Main functions are
@@ -75,7 +76,7 @@ export class Timeline extends React.Component<FieldViewProps> {
*/
@computed
private get children(): Doc[] {
- const annotatedDoc = ["image", "video", "pdf"].includes(StrCast(this.props.Document.type));
+ const annotatedDoc = [DocumentType.IMG, DocumentType.VID, DocumentType.PDF].includes(StrCast(this.props.Document.type) as any);
if (annotatedDoc) {
return DocListCast(this.props.Document[Doc.LayoutFieldKey(this.props.Document) + "-annotations"]);
}