fix channel importing bug (#1005)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user