Skip to content

Commit c7502a7

Browse files
committed
do not attempt resource render if path is not set and its empty
1 parent ab32cee commit c7502a7

File tree

1 file changed

+3
-2
lines changed
  • aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/reference/v2/reference

1 file changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template data-sly-template.variant="${@ componentProperties}">
22
<div style="${componentProperties.attr.data.style @ context = 'unsafe'}"
33
data-sly-attribute="${componentProperties.attr.data @ context = 'unsafe'}">
4-
<sly data-sly-resource="${componentProperties.path @ wcmmode=componentProperties.wcmmode, selectors=componentProperties.selectors}"></sly>
4+
<sly data-sly-test="${componentProperties.path && !componentProperties.isEmpty}"
5+
data-sly-resource="${componentProperties.path @ wcmmode=componentProperties.wcmmode, selectors=componentProperties.selectors}"></sly>
56
</div>
6-
</template>
7+
</template>

0 commit comments

Comments
 (0)