Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2024-11-21 09:12:54 +00:00
commit 10c9d0e3a7
2 changed files with 6 additions and 4 deletions

View File

@ -2,9 +2,7 @@
"version": "1.5.0-alpha.3",
"npmClient": "yarn",
"useWorkspaces": true,
"npmClientArgs": [
"--ignore-engines"
],
"npmClientArgs": ["--ignore-engines"],
"command": {
"version": {
"forcePublish": true,

View File

@ -15,6 +15,7 @@ import { Button } from 'antd';
import { cloneDeep, omit } from 'lodash';
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router-dom';
import { useAPIClient, useRequest } from '../../api-client';
import { RecordProvider, useRecord } from '../../record-provider';
import { ActionContextProvider, SchemaComponent, useActionContext, useCompile } from '../../schema-component';
@ -172,8 +173,11 @@ export const SyncFieldsActionCom = (props) => {
const [schema, setSchema] = useState({});
const compile = useCompile();
const { t } = useTranslation();
const { name = 'main' } = useParams();
return (
record.template === 'view' && (
record.template === 'view' &&
name === 'main' && (
<RecordProvider record={record}>
<ActionContextProvider value={{ visible, setVisible, drawerProps: { width: 900 } }}>
{children || (