Commit 3ec8e3f6 authored by 张瑶's avatar 张瑶

fix: 兼容未配置展示配置的情况

parent 4643a75e
......@@ -175,6 +175,10 @@ const QuotaSelect = ({
useEffect(() => {
const param = confList.filter((child) => child.deviceType === selectDevice.deviceType)[0];
if (!param)
param = {
deviceType: selectDevice.deviceType,
};
setConfParams({ ...param });
}, [selectDevice]);
......
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 to comment