mirror of
https://github.com/mattermost/focalboard.git
synced 2025-02-01 19:14:35 +02:00
Fixed #269
This commit is contained in:
parent
71205233de
commit
e96bf126be
@ -29,6 +29,7 @@ type Props = {
|
||||
|
||||
const CardDetail = (props: Props): JSX.Element|null => {
|
||||
const {cardTree} = props
|
||||
const {card, comments} = cardTree
|
||||
const [title, setTitle] = useState(cardTree.card.title)
|
||||
const titleRef = useRef<{focus(selectAll?: boolean): void}>(null)
|
||||
const titleValueRef = useRef(title)
|
||||
@ -46,14 +47,12 @@ const CardDetail = (props: Props): JSX.Element|null => {
|
||||
mutator.changeTitle(card, titleValueRef.current)
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
}, [cardTree])
|
||||
|
||||
if (!cardTree) {
|
||||
return null
|
||||
}
|
||||
|
||||
const {card, comments} = cardTree
|
||||
|
||||
// componentWillUnmount(): void {
|
||||
// }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user