Fix remove button not showing in CollectionType forms with allow_delete option

This commit is contained in:
Julie Lenaerts 2024-08-14 14:23:03 +02:00
parent d52e54fd2a
commit 6445342136

View File

@ -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();