From 7d1a9ef7f89bed4ce75f39944b07df5f82961437 Mon Sep 17 00:00:00 2001 From: Brandon Jordan Date: Thu, 30 Nov 2023 20:34:53 -0500 Subject: [PATCH] Fix get as in var refs --- src/value.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/value.ts b/src/value.ts index 073ff59..fbbf6bb 100644 --- a/src/value.ts +++ b/src/value.ts @@ -65,6 +65,9 @@ function renderObjectValue(container: HTMLElement, value?: any) { varTypeName += ` (${contentItemTypes[aggrandizements.CoercionItemClass]})`; break; } + if (aggrandizements.PropertyName) { + varTypeName = aggrandizements.PropertyName; + } } const inlineVar = renderInlineVariable(varTypeName, variable.Type); str = str.replace('\uFFFC', inlineVar.outerHTML); @@ -73,7 +76,7 @@ function renderObjectValue(container: HTMLElement, value?: any) { return; } - varName = value.Value.VariableName ?? value.Value.OutputName; + varName = value.Value.VariableName ?? value.Value.OutputName ?? value.Value.PropertyName; varType = value.Value.Type; } else if (value.Variable) { varName = value.Variable.Value.VariableName;