From 80ec707aa6d2904738eb3f28a705571d04ade353 Mon Sep 17 00:00:00 2001 From: adrians5j Date: Mon, 9 Oct 2023 16:37:23 +0200 Subject: [PATCH] fix: add `template.variables` array --- .../api-page-builder/src/graphql/crud/pageTemplates.crud.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/api-page-builder/src/graphql/crud/pageTemplates.crud.ts b/packages/api-page-builder/src/graphql/crud/pageTemplates.crud.ts index 65d260a6768..a4f16f9d635 100644 --- a/packages/api-page-builder/src/graphql/crud/pageTemplates.crud.ts +++ b/packages/api-page-builder/src/graphql/crud/pageTemplates.crud.ts @@ -50,7 +50,11 @@ const getDefaultContent = () => { return { id: uniqid.time(), type: "document", - data: {}, + data: { + template: { + variables: [] + } + }, elements: [] }; };