From 7828f0fb0274a78ff4de140c837b6470abc7f473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 19 Aug 2024 09:30:26 +0200 Subject: [PATCH] maxAllowed --- .../block/block-grid/context/block-grid-entries.context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/context/block-grid-entries.context.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/context/block-grid-entries.context.ts index 53aa90fd34..948c21b35a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/context/block-grid-entries.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-grid/context/block-grid-entries.context.ts @@ -98,9 +98,9 @@ export class UmbBlockGridEntriesContext getMaxAllowed() { if (this.#areaKey) { - return this.#areaType?.minAllowed ?? Infinity; + return this.#areaType?.maxAllowed ?? Infinity; } - return this._manager?.getMinAllowed() ?? Infinity; + return this._manager?.getMaxAllowed() ?? Infinity; } getLayoutContainerElement() {