Merge pull request #596 from daggeryu/patch-2

fix: 关键词搜索时无法展开测试模型
This commit is contained in:
Calcium-Ion 2024-12-05 22:53:05 +08:00 committed by GitHub
commit 6cc34fba5c

View File

@ -780,12 +780,7 @@ const ChannelsTable = () => {
);
const { success, message, data } = res.data;
if (success) {
if (enableTagMode) {
setChannelFormat(data, enableTagMode);
} else {
setChannels(data.map(channel => ({...channel, key: '' + channel.id})));
setChannelCount(data.length);
}
setChannelFormat(data, enableTagMode);
setActivePage(1);
} else {
showError(message);