Fix channel settings
This commit is contained in:
@@ -49,7 +49,7 @@ export const Channel = ({ channel }: ChannelProps): JSX.Element => {
|
||||
].find((role) => role === channel.role)
|
||||
? true
|
||||
: false,
|
||||
name: channel.settings?.name,
|
||||
...channel.settings,
|
||||
psk: fromByteArray(channel.settings?.psk ?? new Uint8Array(0)),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -149,14 +149,6 @@ export const Channels = ({
|
||||
suffix="dBm"
|
||||
{...register('settings.txPower', { valueAsNumber: true })}
|
||||
/>
|
||||
<Checkbox
|
||||
label="Uplink Enabled"
|
||||
{...register('settings.uplinkEnabled')}
|
||||
/>
|
||||
<Checkbox
|
||||
label="Downlink Enabled"
|
||||
{...register('settings.downlinkEnabled')}
|
||||
/>
|
||||
</form>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user