diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-01-20 20:07:48 -0500 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-01-20 20:07:48 -0500 |
commit | 7b49bca26f95e7bf1e878d4987f061511a5def39 (patch) | |
tree | b160034ebfd770c73071203410b468778fa93697 /src/client/views/animationtimeline/Timeline.tsx | |
parent | e4c9218e217b617e513259cac90b077431890eaa (diff) | |
parent | 68785a97178d229935c0429791081d7c09312dc3 (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.tsx | 3 |
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"]); } |