fix: 公式函数参数描述可能不存在的问题

This commit is contained in:
allenve 2023-06-19 18:52:58 +08:00
parent c644ef4f19
commit c47a7368eb

View File

@ -102,6 +102,7 @@ export function FuncList(props: FuncListProps) {
<div className={cx('FormulaEditor-FuncList-doc', descClassName)}>
{activeFunc ? (
<>
{Array.isArray(activeFunc.params) ? (
<pre>
<TooltipWrapper
placement="top"
@ -141,6 +142,7 @@ export function FuncList(props: FuncListProps) {
<code>{activeFunc.example}</code>
</TooltipWrapper>
</pre>
) : null}
<div className={cx('FormulaEditor-FuncList-doc-desc')}>
{activeFunc.description}
</div>