fix channel importing bug (#1005)
This commit is contained in:
@@ -105,7 +105,7 @@ export const ImportDialog = ({ open, onOpenChange }: ImportDialogProps) => {
|
|||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
setChange(
|
setChange(
|
||||||
{ type: "channels", index: importIndex[index] ?? 0 },
|
{ type: "channel", index: importIndex[index] ?? 0 },
|
||||||
payload,
|
payload,
|
||||||
channels.get(importIndex[index] ?? 0),
|
channels.get(importIndex[index] ?? 0),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export const Channel = ({ onFormInit, channel }: SettingsPanelProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const workingChannel = getChange({
|
const workingChannel = getChange({
|
||||||
type: "channels",
|
type: "channel",
|
||||||
index: channel.index,
|
index: channel.index,
|
||||||
}) as Protobuf.Channel.Channel | undefined;
|
}) as Protobuf.Channel.Channel | undefined;
|
||||||
const effectiveConfig = workingChannel ?? channel;
|
const effectiveConfig = workingChannel ?? channel;
|
||||||
|
|||||||
Reference in New Issue
Block a user