From 8dc7cc2f0cc3b8544c62d5fded1f66f09d1d7c5b Mon Sep 17 00:00:00 2001 From: tpluscode Date: Fri, 2 Feb 2024 12:54:01 +0100 Subject: [PATCH] refactor: simplify and also shrink Focus Nodes --- packages/app/src/lib/components/error-summary.js | 4 ++-- yarn.lock | 16 ++-------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/packages/app/src/lib/components/error-summary.js b/packages/app/src/lib/components/error-summary.js index af4acbd..2021d91 100644 --- a/packages/app/src/lib/components/error-summary.js +++ b/packages/app/src/lib/components/error-summary.js @@ -25,13 +25,13 @@ function renderSummary({ focusNodes, ...top }, customPrefixes) { ${[...focusNodes].map( ([focusNode, { properties, errors }]) => html`
  • - ${focusNode.value}: + ${shrink(focusNode.value, customPrefixes) || focusNode.value}: