Skip to content

Commit

Permalink
revert: boardsEditor setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat-Dabade committed Jun 6, 2024
1 parent b6427c0 commit c41a4d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webapp/src/components/cardDetail/cardDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ import TelemetryClient, {TelemetryActions, TelemetryCategory} from '../../teleme

import BlockIconSelector from '../blockIconSelector'

import {useAppDispatch} from '../../store/hooks'
import {useAppDispatch, useAppSelector} from '../../store/hooks'
import {updateCards, setCurrent as setCurrentCard} from '../../store/cards'
import {updateContents} from '../../store/contents'
import {Permission} from '../../constants'
import {useHasCurrentBoardPermissions} from '../../hooks/permissions'
import BlocksEditor from '../blocksEditor/blocksEditor'
import {BlockData} from '../blocksEditor/blocks/types'
import {ClientConfig} from '../../config/clientConfig'
import {getClientConfig} from '../../store/clientConfig'

import CardSkeleton from '../../svg/card-skeleton'

Expand Down Expand Up @@ -114,7 +116,8 @@ const CardDetail = (props: Props): JSX.Element|null => {
saveTitleRef.current = saveTitle
const intl = useIntl()

const newBoardsEditor = false
const clientConfig = useAppSelector<ClientConfig>(getClientConfig)
const newBoardsEditor = clientConfig?.featureFlags?.newBoardsEditor || false

useImagePaste(props.board.id, card.id, card.fields.contentOrder)

Expand Down

0 comments on commit c41a4d7

Please sign in to comment.