diff --git a/src/data/common.tsx b/src/data/common.tsx index b258c88..f9f58fb 100644 --- a/src/data/common.tsx +++ b/src/data/common.tsx @@ -133,7 +133,7 @@ export function createResetButton; // marking as required - display?: Computable; + display?: Computable; append?: Computable; } export type LayerTreeNode = Replace< @@ -146,7 +146,7 @@ export type LayerTreeNode = Replace< export type GenericLayerTreeNode = Replace< LayerTreeNode, { - display: ProcessedComputable; + display: ProcessedComputable; append?: ProcessedComputable; } >; @@ -161,7 +161,7 @@ export function createLayerTreeNode( processComputable(options as T, "append"); return { ...options, - display: options.layerID, + display: options.display, onClick: unref((options as unknown as GenericLayerTreeNode).append) ? function () { if (player.tabs.includes(options.layerID)) {