From 391be4093b943c1dd44bcad0dd27a9d74c5937e0 Mon Sep 17 00:00:00 2001 From: Katherine Date: Mon, 13 Jan 2025 15:12:19 +0800 Subject: [PATCH] fix: missing current popup variable in the field enable link modal (#6045) --- .../common/withPopupWrapper/index.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/core/client/src/schema-component/common/withPopupWrapper/index.tsx b/packages/core/client/src/schema-component/common/withPopupWrapper/index.tsx index ab876304c4..588497e8db 100644 --- a/packages/core/client/src/schema-component/common/withPopupWrapper/index.tsx +++ b/packages/core/client/src/schema-component/common/withPopupWrapper/index.tsx @@ -14,9 +14,9 @@ import { ActionContextProvider, SchemaComponentOptions, useActionContext, useDes import { PopupVisibleProvider } from '../../antd/page/PagePopups'; import { usePopupUtils } from '../../antd/page/pagePopupUtils'; import { popupSchema } from './schema'; - import { CollectionProvider, useCollection } from '../../../data-source'; import { NocoBaseRecursionField } from '../../../formily/NocoBaseRecursionField'; +import { VariablePopupRecordProvider } from '../../../modules/variable/variablesProvider/VariablePopupRecordProvider'; const useInsertSchema = () => { const fieldSchema = useFieldSchema(); @@ -109,12 +109,14 @@ function withPopupWrapper(WrappedComponent: React.ComponentType) { > - + + +