mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
ef078fb2f9
@ -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)];
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user