fix: exclude auth card from camera save — selector scoped to [data-id]
This commit is contained in:
parent
7ebeb73f62
commit
83ed6516f1
1 changed files with 2 additions and 2 deletions
|
|
@ -392,8 +392,8 @@ document.getElementById('btn-scan').addEventListener('click', runWizard);
|
|||
// ── Settings: Save ──
|
||||
document.getElementById('btn-save').addEventListener('click', async () => {
|
||||
const status = document.getElementById('settings-status');
|
||||
// Collect camera data from DOM.
|
||||
const cards = document.querySelectorAll('.camera-card');
|
||||
// Collect camera data from DOM (skip the auth card).
|
||||
const cards = document.querySelectorAll('.camera-card[data-id]');
|
||||
const updatedCameras = [];
|
||||
cards.forEach(card => {
|
||||
const c = {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue