chore(maps): update animation marker when sos_alarm
This commit is contained in:
@@ -10,7 +10,7 @@ export default function useGetGpsModel() {
|
||||
const res = await getGPS(); // đổi URL cho phù hợp
|
||||
console.log('GPS Data fetched:', res);
|
||||
|
||||
setGpsData(res || []);
|
||||
setGpsData(res);
|
||||
} catch (err) {
|
||||
console.error('Fetch gps data failed', err);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user