mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
10c9d0e3a7
@ -2,9 +2,7 @@
|
||||
"version": "1.5.0-alpha.3",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"npmClientArgs": [
|
||||
"--ignore-engines"
|
||||
],
|
||||
"npmClientArgs": ["--ignore-engines"],
|
||||
"command": {
|
||||
"version": {
|
||||
"forcePublish": true,
|
||||
|
@ -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 || (
|
||||
|
Loading…
Reference in New Issue
Block a user