From 6445342136f3a0cfaf43ce14c6895572da7f4ed0 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 14 Aug 2024 14:23:03 +0200 Subject: [PATCH] Fix remove button not showing in CollectionType forms with allow_delete option --- .../ChillMainBundle/Resources/public/module/collection/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts b/src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts index de428335d..b48324786 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts +++ b/src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts @@ -60,7 +60,7 @@ export const handleAdd = (button: any): void => { entry.innerHTML = content; entry.classList.add('entry'); - if ("dataCollectionRegular" in collection.dataset) { + if ("collectionRegular" in collection.dataset) { initializeRemove(collection, entry); if (empty_explain !== null) { empty_explain.remove();