From 76c81dc5b5c2d2d71ef48d1b84937fcee492542e Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 23 Apr 2022 23:54:23 -0500 Subject: [PATCH] Fixed createLayerTreeNode not using display option correctly --- src/data/common.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) {