Skip to content

Commit

Permalink
skip fieldsList_e init if it already has fields (#706)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Feb 19, 2024
1 parent 5f027d6 commit 62ade97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/header_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ function HeaderDialog(dialog, onSave) {
{name: 'Unfiltered Gyroscope', description: 'Unfiltered gyro data'},
];

const fieldsList_e = $('.fields_list');
const fieldsList_e = $('.fields_list').empty();

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

0 comments on commit 62ade97

Please sign in to comment.