Skip to content

Commit 0fe3fa0

Browse files
specialish
1 parent b6bc0f4 commit 0fe3fa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-collection/src/components/collection-tab.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { connect } from 'react-redux';
33
import { type CollectionState, selectTab } from '../modules/collection-tab';
44
import { css, ErrorBoundary, TabNavBar } from '@mongodb-js/compass-components';
55
import CollectionHeader from './collection-header';
6+
import toNS from 'mongodb-ns';
67
import { useLogger } from '@mongodb-js/compass-logging/provider';
78
import {
89
useCollectionQueryBar,
@@ -121,7 +122,7 @@ function useCollectionTabs(props: CollectionMetadata) {
121122
const isGlobalWritesSupported =
122123
useConnectionSupports(connectionInfoRef.current.id, 'globalWrites') &&
123124
!props.isReadonly &&
124-
!['config', 'local', 'admin'].includes(props.namespace.split('.')[0]);
125+
!toNS(props.namespace).specialish;
125126
return pluginTabs
126127
.filter((x) => {
127128
if (x.name === 'GlobalWrites' && !isGlobalWritesSupported) {

0 commit comments

Comments
 (0)