Skip to content

Commit 62ade97

Browse files
mituritsynnerdCopterhaslinghuis
authored
skip fieldsList_e init if it already has fields (#706)
* skip fieldsList_e init if it already has fields * different approach with clearind the list * Update js/header_dialog.js Co-authored-by: Mark Haslinghuis <[email protected]> --------- Co-authored-by: nerdCopter <[email protected]> Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent 5f027d6 commit 62ade97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/header_dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ function HeaderDialog(dialog, onSave) {
465465
{name: 'Unfiltered Gyroscope', description: 'Unfiltered gyro data'},
466466
];
467467

468-
const fieldsList_e = $('.fields_list');
468+
const fieldsList_e = $('.fields_list').empty();
469469

470470
for (let i = 0; i < fields.length; i++) {
471471
const row_e = $(`<tr><td><label class="option"><input class="field ${i}

0 commit comments

Comments
 (0)