mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-10 07:33:09 +00:00
fix: handle undefined card titles in card modal header
This commit is contained in:
parent
f840739c6d
commit
e9272fe391
3 changed files with 70 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue