fix channel importing bug (#1005)

This commit is contained in:
Dan Ditomaso
2026-02-11 12:27:17 -05:00
committed by GitHub
parent 0108494bd8
commit 765e4afe4d
2 changed files with 2 additions and 2 deletions
@@ -105,7 +105,7 @@ export const ImportDialog = ({ open, onOpenChange }: ImportDialogProps) => {
)
) {
setChange(
{ type: "channels", index: importIndex[index] ?? 0 },
{ type: "channel", index: importIndex[index] ?? 0 },
payload,
channels.get(importIndex[index] ?? 0),
);
@@ -47,7 +47,7 @@ export const Channel = ({ onFormInit, channel }: SettingsPanelProps) => {
};
const workingChannel = getChange({
type: "channels",
type: "channel",
index: channel.index,
}) as Protobuf.Channel.Channel | undefined;
const effectiveConfig = workingChannel ?? channel;