fix: handle undefined card titles in card modal header

This commit is contained in:
sentry-autofix[bot] 2025-03-23 04:45:56 +00:00 committed by GitHub
parent f840739c6d
commit e9272fe391
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 70 additions and 3 deletions

View file

@ -40,7 +40,7 @@ export const Header = ({ data }: HeaderProps) => {
const inputRef = useRef<HTMLInputElement>(null);
const [title, setTitle] = useState(data.title);
const [title, setTitle] = useState(data?.title || '');
const onBlur = () => {
inputRef.current?.form?.requestSubmit();