aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionStackedTimeline.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx
index 65022fdfd..89da6692a 100644
--- a/src/client/views/collections/CollectionStackedTimeline.tsx
+++ b/src/client/views/collections/CollectionStackedTimeline.tsx
@@ -372,10 +372,11 @@ export class CollectionStackedTimeline extends CollectionSubView<
startTag: string,
endTag: string,
anchorStartTime?: number,
- anchorEndTime?: number
+ anchorEndTime?: number,
+ docAnchor?: Doc
) {
if (anchorStartTime === undefined) return rootDoc;
- const anchor = Docs.Create.LabelDocument({
+ const anchor = docAnchor ?? Docs.Create.LabelDocument({
title: ComputedField.MakeFunction(
`"#" + formatToTime(self["${startTag}"]) + "-" + formatToTime(self["${endTag}"])`
) as any,