Skip to content

Commit 8dcb63b

Browse files
committed
chore: more tweaks to camera snapshot URLs
1 parent aece8b2 commit 8dcb63b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/app/overlays/item-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export class ItemCreateUpdateModalComponent
270270
{ ...item_json, ...this.form.value },
271271
this.item_type === 'user'
272272
? [undefined, null, '']
273-
: [undefined, null],
273+
: [undefined],
274274
)
275275
: { ...item_json, ...this.form.value }
276276
) as Identity;

src/app/systems/systems.utilities.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export function generateSystemsFormFields(system?: PlaceSystem) {
4949
]),
5050
camera_url: new FormControl(system.camera_url || '', [validateURL]),
5151
camera_snapshot_url: new FormControl(
52-
system.camera_snapshot_url || system.camera_snapshot_urls[0] || '',
52+
system.camera_snapshot_url ||
53+
system.camera_snapshot_urls[0] ||
54+
null,
5355
),
5456
camera_snapshot_urls: new FormControl(
5557
system.camera_snapshot_urls

0 commit comments

Comments
 (0)