Remove graphql twenty orm feature flag (#7556)
## Context IS_QUERY_RUNNER_TWENTY_ORM_ENABLED has been fully launched in 0.31.0, the feature flag can be safely removed. Note: Waiting for 0.31.1
This commit is contained in:
@ -167,18 +167,12 @@ export const CommandMenu = () => {
|
||||
[closeCommandMenu],
|
||||
);
|
||||
|
||||
const isTwentyOrmEnabled = useIsFeatureEnabled(
|
||||
'IS_QUERY_RUNNER_TWENTY_ORM_ENABLED',
|
||||
);
|
||||
|
||||
const isWorkspaceMigratedForSearch = useIsFeatureEnabled(
|
||||
'IS_WORKSPACE_MIGRATED_FOR_SEARCH',
|
||||
);
|
||||
|
||||
const isSearchEnabled =
|
||||
useIsFeatureEnabled('IS_SEARCH_ENABLED') &&
|
||||
isTwentyOrmEnabled &&
|
||||
isWorkspaceMigratedForSearch;
|
||||
useIsFeatureEnabled('IS_SEARCH_ENABLED') && isWorkspaceMigratedForSearch;
|
||||
|
||||
const { records: peopleFromFindMany } = useFindManyRecords<Person>({
|
||||
skip: !isCommandMenuOpened || isSearchEnabled,
|
||||
|
||||
Reference in New Issue
Block a user