feat: Add preview_video for sights
				
					
				
			This commit is contained in:
		| @@ -174,6 +174,7 @@ export const DevicesTable = observer(() => { | ||||
|     setSelectedDevice(uuid); // Sets the device in the store, useful for context elsewhere | ||||
|     try { | ||||
|       await authInstance.post(`/devices/${uuid}/request-status`); | ||||
|       await getVehicles(); | ||||
|       await getDevices(); // Refresh devices to show updated status | ||||
|     } catch (error) { | ||||
|       console.error(`Error requesting status for device ${uuid}:`, error); | ||||
| @@ -398,7 +399,6 @@ export const DevicesTable = observer(() => { | ||||
|                           devices.find((device) => device === row.device_uuid) | ||||
|                         ) { | ||||
|                           await handleReloadStatus(row.device_uuid); | ||||
|                           await getDevices(); | ||||
|                           toast.success("Статус устройства обновлен"); | ||||
|                         } else { | ||||
|                           toast.error("Нет связи с устройством"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user