|
|
@@ -24,7 +24,8 @@ const Automation = ({
|
|
|
const { data, mutate } = useSWR("/api/state", fetcher);
|
|
|
const screenSize = useScreenSize();
|
|
|
|
|
|
- const getTitle = (indx) => presets?.[indx]?.name || indx;
|
|
|
+ const getTitle = (indx) =>
|
|
|
+ presets?.[indx]?.name || presets?.[indx]?.n || indx;
|
|
|
const getName = (v) => {
|
|
|
let indx = clients?.findIndex((o) => o === v);
|
|
|
return indx > -1 ? names?.[indx] : v;
|