Skip to content

Commit

Permalink
Fix get as in var refs
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Dec 1, 2023
1 parent 34bcfa9 commit 7d1a9ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 7d1a9ef

Please sign in to comment.