Skip to content

Commit

Permalink
Fix the duplicate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GenZerg committed Oct 25, 2023
1 parent df1336e commit 04dd5ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -1379,8 +1379,15 @@ class ARMMane{
// Fetch the presets and steps
this.getPreset()
.then(presetsWithSteps => {

// Remove the draggable list before creating new ones
this.elements["ui"]["function_box"][0].querySelector("div").innerHTML = "";

// Create the draggable list of elements
this.createDraggableList();

// Remove the preset list before creating new ones
this.elements["ui"]["preset_box"][0].querySelector("div").innerHTML = "";

// Create the preset list in the preset_box
this.createPresetList(presetsWithSteps);
Expand Down

0 comments on commit 04dd5ec

Please sign in to comment.