mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-13 19:36:26 +03:00
formatting
This commit is contained in:
@@ -4796,7 +4796,9 @@ router
|
||||
}
|
||||
|
||||
// add the scheduler data
|
||||
const namedSchedules = emsesp_schedule.schedule.filter((item: any) => item.name);
|
||||
const namedSchedules = emsesp_schedule.schedule.filter(
|
||||
(item: any) => item.name
|
||||
);
|
||||
if (namedSchedules.length > 0) {
|
||||
const scheduler_data = namedSchedules.map((item: any, index: number) => ({
|
||||
id: DeviceTypeUniqueID.SCHEDULER_UID * 100 + index,
|
||||
@@ -4816,7 +4818,9 @@ router
|
||||
}
|
||||
|
||||
// add the command items (executable from dashboard)
|
||||
const namedCommands = emsesp_commands.commands.filter((item: any) => item.name);
|
||||
const namedCommands = emsesp_commands.commands.filter(
|
||||
(item: any) => item.name
|
||||
);
|
||||
if (namedCommands.length > 0) {
|
||||
const command_data = namedCommands.map((item: any, index: number) => ({
|
||||
id: DeviceTypeUniqueID.COMMAND_UID * 100 + index,
|
||||
|
||||
Reference in New Issue
Block a user