Skip to content

Commit

Permalink
Fix form component loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cr0wst committed Feb 2, 2025
1 parent 88de7be commit 6822ded
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
export function create() {
mode = 'ADD';
reset();
components = [];
modal.open();
}
Expand All @@ -57,7 +58,7 @@
}
function removeElement(index: number) {
$form.components = $form.components.filter((_, i) => i !== index);
components = components.filter((_, i) => i !== index);
}
async function handleFileSelect(event: Event) {
Expand Down

0 comments on commit 6822ded

Please sign in to comment.