diff --git a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx index f373cfc0c3..e6cce51f3a 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx +++ b/packages/plugins/@nocobase/plugin-map/src/client/block/MapBlock.Settings.tsx @@ -26,6 +26,7 @@ import { useCollectionManager_deprecated, useDesignable, useFormBlockContext, + useColumnSchema, } from '@nocobase/client'; import _ from 'lodash'; import { useMapTranslation } from '../locale'; @@ -71,6 +72,10 @@ export const defaultZoomLevel = { }, }; }, + useVisible() { + const { fieldSchema: tableColumnSchema } = useColumnSchema(); + return !tableColumnSchema; + }, }; export const mapBlockSettings = new SchemaSettings({