chore: rename variable

This commit is contained in:
MrWindlike 2022-04-07 15:21:38 +08:00
parent 6306cc0340
commit 0f0dc5827c

View File

@ -156,15 +156,15 @@ const _ImplWrapper = React.forwardRef<HTMLDivElement, ImplWrapperProps>((props,
}, [c.id, stateManager.store]); }, [c.id, stateManager.store]);
const mergedProps = useMemo(() => { const mergedProps = useMemo(() => {
const mergedProps: Record<string, any> = { ...evaledComponentProperties, ...propsFromTraits }; const allProps: Record<string, any> = { ...evaledComponentProperties, ...propsFromTraits };
for (const key in mergedProps) { for (const key in allProps) {
if (mergedProps[key] instanceof ExpressionError) { if (allProps[key] instanceof ExpressionError) {
mergedProps[key] = undefined; allProps[key] = undefined;
} }
} }
return mergedProps; return allProps;
}, [evaledComponentProperties, propsFromTraits]); }, [evaledComponentProperties, propsFromTraits]);
function genSlotsElements() { function genSlotsElements() {