Skip to content

Commit

Permalink
Remove problematic call to accordion handler function
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Oct 22, 2024
1 parent 6223663 commit ff8c31a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/AddFile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@
try {
resourceResult = details;
if (resourceResult.resources) {
handleAddDataAccordion({ event: true });
// Trigger update in ResourceSelector
resourceCollection.addResources(resourceResult.resources, resourceResult.sectionKey, resourceResult.sectionTemplate);
showSuccessMessage();
Expand Down Expand Up @@ -260,7 +259,7 @@
}, 1000);
}
function handleAddDataAccordion({ detail }) {
function handleAddDataAccordionOverflow({ detail }) {
addDataOpen = detail;
const accordion = document.querySelector('div.add-data > div.accordion-collapse');
if (accordion) {
Expand Down Expand Up @@ -292,7 +291,7 @@
<AccordionItem
active={!resourcesAdded}
class="add-data"
on:toggle={handleAddDataAccordion}
on:toggle={handleAddDataAccordionOverflow}
>
<h5 slot="header" class="my-2">{addDataHeader}</h5>
{#if !resourcesAdded}
Expand Down

0 comments on commit ff8c31a

Please sign in to comment.