mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复订阅格式化参数
This commit is contained in:
parent
622fe2a8f8
commit
dbfa4049f5
|
@ -139,6 +139,7 @@ const SubscriptionModal = ({
|
||||||
setIntervalNumber(value.value);
|
setIntervalNumber(value.value);
|
||||||
}
|
}
|
||||||
}, [value]);
|
}, [value]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Input.Group compact>
|
<Input.Group compact>
|
||||||
<InputNumber
|
<InputNumber
|
||||||
|
@ -247,8 +248,8 @@ const SubscriptionModal = ({
|
||||||
const formatParams = (sub) => {
|
const formatParams = (sub) => {
|
||||||
return {
|
return {
|
||||||
...sub,
|
...sub,
|
||||||
autoAddCron: isNil(sub.autoAddCron) ? true : Boolean(sub.autoAddCron),
|
autoAddCron: isNil(sub?.autoAddCron) ? true : Boolean(sub?.autoAddCron),
|
||||||
autoDelCron: isNil(sub.autoDelCron) ? true : Boolean(sub.autoDelCron),
|
autoDelCron: isNil(sub?.autoDelCron) ? true : Boolean(sub?.autoDelCron),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user