This commit is contained in:
Hunter Thornsberry
2024-06-25 12:39:06 -04:00
parent 205c9a21e3
commit 2f37390985
2 changed files with 11 additions and 2 deletions
@@ -13,7 +13,10 @@ export const MQTT = (): JSX.Element => {
case: "mqtt", case: "mqtt",
value: { value: {
...data, ...data,
mapReportSettings: new Protobuf.ModuleConfig.ModuleConfig_MapReportSettings(data.mapReportSettings) mapReportSettings:
new Protobuf.ModuleConfig.ModuleConfig_MapReportSettings(
data.mapReportSettings,
),
}, },
}, },
}), }),
+7 -1
View File
@@ -1,6 +1,12 @@
import type { Message } from "@bufbuild/protobuf"; import type { Message } from "@bufbuild/protobuf";
import type { Protobuf } from "@meshtastic/js"; import type { Protobuf } from "@meshtastic/js";
import { IsBoolean, IsNumber, IsOptional, IsString, Length } from "class-validator"; import {
IsBoolean,
IsNumber,
IsOptional,
IsString,
Length,
} from "class-validator";
export class MqttValidation export class MqttValidation
implements implements