feat(charts): add persistent workspace chart management
This commit is contained in:
@@ -34,7 +34,7 @@ export function useAccumulatedHistory(
|
||||
setLoading(true);
|
||||
|
||||
const params = new URLSearchParams({
|
||||
key: `meteo.${sensorKey}`,
|
||||
key: sensorKey,
|
||||
range,
|
||||
});
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export function useMeteoHistory(sensor: ModuleSensorResponse | null) {
|
||||
const from = new Date(to.getTime() - hours * 60 * 60 * 1000);
|
||||
|
||||
const params = new URLSearchParams({
|
||||
key: `meteo.${sensorKey}`,
|
||||
key: sensorKey,
|
||||
from: from.toISOString(),
|
||||
to: to.toISOString(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user