Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2024-12-16 03:17:47 +00:00
commit ef078fb2f9
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export const useCustomRequestVariableOptions = () => {
const userFieldOptions = useCollectionFilterOptions('users', DEFAULT_DATA_SOURCE_KEY);
const compile = useCompile();
const recordData = useCollectionRecordData();
const { name: blockType } = useBlockContext();
const { name: blockType } = useBlockContext() || {};
const [fields, userFields] = useMemo(() => {
return [compile(fieldsOptions), compile(userFieldOptions)];

View File

@ -27,7 +27,7 @@ export const useCustomizeRequestActionProps = () => {
const actionSchema = useFieldSchema();
const compile = useCompile();
const form = useForm();
const { name: blockType } = useBlockContext();
const { name: blockType } = useBlockContext() || {};
// const { getPrimaryKey } = useCollection_deprecated();
const recordData = useCollectionRecordData();
const fieldSchema = useFieldSchema();