From 9ae2747ada60824e73c14fb3e6f4347e878ec07b Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 25 Nov 2021 18:25:06 -0300 Subject: [PATCH] Fix IndexOutOfBoundsException in Qute DevUI Fixes #21713 --- .../src/main/resources/dev-templates/preview.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/extensions/qute/deployment/src/main/resources/dev-templates/preview.html b/extensions/qute/deployment/src/main/resources/dev-templates/preview.html index b563f52692486..c33445286233a 100644 --- a/extensions/qute/deployment/src/main/resources/dev-templates/preview.html +++ b/extensions/qute/deployment/src/main/resources/dev-templates/preview.html @@ -1,3 +1,10 @@ +{#if info:devQuteInfos.templates.isEmpty} + {#include main} + {#body} +

No Templates found

+ {/body} + {/include} +{#else} {#include main} {#title}Render Preview{/title} {#style} @@ -101,4 +108,5 @@ {/script} -{/include} + {/include} +{/if}