File tree Expand file tree Collapse file tree
src/main/java/com/hubspot/jinjava/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424import com .hubspot .jinjava .mode .EagerExecutionMode ;
2525import com .hubspot .jinjava .objects .serialization .PyishBlockSetSerializable ;
2626import com .hubspot .jinjava .objects .serialization .PyishObjectMapper ;
27+ import com .hubspot .jinjava .objects .serialization .PyishSerializable ;
2728import com .hubspot .jinjava .tree .TagNode ;
2829import com .hubspot .jinjava .tree .parse .NoteToken ;
2930import com .hubspot .jinjava .tree .parse .TagToken ;
@@ -270,7 +271,10 @@ public static String buildBlockOrInlineSetTag(
270271 JinjavaInterpreter interpreter ,
271272 boolean registerDeferredToken
272273 ) {
273- if (value instanceof DeferredValue ) {
274+ if (
275+ value instanceof DeferredValue &&
276+ !(value instanceof PyishBlockSetSerializable || value instanceof PyishSerializable )
277+ ) {
274278 value = ((DeferredValue ) value ).getOriginalValue ();
275279 }
276280 if (value instanceof PyishBlockSetSerializable ) {
You can’t perform that action at this time.
0 commit comments