mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-30 03:08:31 +08:00
fix: issue with displaying unsupported Sync from database in external data source view collection (#5696)
This commit is contained in:
parent
f351f78936
commit
9e1b0e8d04
@ -2,9 +2,7 @@
|
||||
"version": "1.4.0-beta.2",
|
||||
"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