From 1e4fb27d7c6add51153b7e277a6850769c7b4bfa Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 21 Aug 2024 16:39:54 +0100 Subject: [PATCH] Ensure autoscreens use a specific component order to look better on older client versions --- packages/builder/src/templates/screenTemplating/table/modal.js | 2 +- .../builder/src/templates/screenTemplating/table/newScreen.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/templates/screenTemplating/table/modal.js b/packages/builder/src/templates/screenTemplating/table/modal.js index 0dede08711..caf1582fbb 100644 --- a/packages/builder/src/templates/screenTemplating/table/modal.js +++ b/packages/builder/src/templates/screenTemplating/table/modal.js @@ -139,8 +139,8 @@ const modal = ({ tableOrView, permissions, screens }) => { .customProps({ layout: "grid" }) .role(permissions.write) .autoTableId(tableOrView.id) - .addChild(buttonGroup) .addChild(heading) + .addChild(buttonGroup) .addChild(tableBlock) .addChild(createRowModal) .addChild(detailsModal) diff --git a/packages/builder/src/templates/screenTemplating/table/newScreen.js b/packages/builder/src/templates/screenTemplating/table/newScreen.js index 051b8edb82..34026bca7f 100644 --- a/packages/builder/src/templates/screenTemplating/table/newScreen.js +++ b/packages/builder/src/templates/screenTemplating/table/newScreen.js @@ -81,9 +81,9 @@ const getTableScreenTemplate = ({ .customProps({ layout: gridLayout ? "grid" : "flex" }) .role(permissions.write) .autoTableId(tableOrView.id) - .addChild(tableBlock) .addChild(heading) .addChild(buttonGroup) + .addChild(tableBlock) .json() return {