Commit 7ed8ef67 by daggeryu Committed by GitHub

fix: 关键词搜索时无法展开测试模型

parent b8755fde
...@@ -780,9 +780,8 @@ const ChannelsTable = () => { ...@@ -780,9 +780,8 @@ const ChannelsTable = () => {
); );
const { success, message, data } = res.data; const { success, message, data } = res.data;
if (success) { if (success) {
if (enableTagMode) { setChannelFormat(data, enableTagMode);
setChannelFormat(data, enableTagMode); if (!enableTagMode) {
} else {
setChannels(data.map(channel => ({...channel, key: '' + channel.id}))); setChannels(data.map(channel => ({...channel, key: '' + channel.id})));
setChannelCount(data.length); setChannelCount(data.length);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment