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 ──
|
// ── Settings: Save ──
|
||||||
document.getElementById('btn-save').addEventListener('click', async () => {
|
document.getElementById('btn-save').addEventListener('click', async () => {
|
||||||
const status = document.getElementById('settings-status');
|
const status = document.getElementById('settings-status');
|
||||||
// Collect camera data from DOM.
|
// Collect camera data from DOM (skip the auth card).
|
||||||
const cards = document.querySelectorAll('.camera-card');
|
const cards = document.querySelectorAll('.camera-card[data-id]');
|
||||||
const updatedCameras = [];
|
const updatedCameras = [];
|
||||||
cards.forEach(card => {
|
cards.forEach(card => {
|
||||||
const c = {};
|
const c = {};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue