Skip to content

Commit 55d9a33

Browse files
author
Joscha Rohmann
committed
Fixed missing condition and .rawValue from a previous change on serverside
template query.
1 parent 6e96796 commit 55d9a33

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/node/overrides.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,14 @@ define([
113113
};
114114

115115
blocks.queries.template.preprocess = function (domQuery, html, value) {
116-
if (VirtualElement.Is(html)) {
117-
html = html.html();
118-
} else if (blocks.isObject(html)) {
119-
html = GLOBAL[html.rawValue] && GLOBAL[html.rawValue].html();
116+
if (blocks.isObject(html)) {
117+
if (VirtualElement.Is(html.rawValue)) {
118+
html = html.rawValue.html();
119+
} else {
120+
html = GLOBAL[html.rawValue] && GLOBAL[html.rawValue].html();
121+
}
120122
}
123+
121124
if (blocks.isObject(value) && value.parameterName) {
122125
value = value.rawValue;
123126
}

0 commit comments

Comments
 (0)