fixed linting

This commit is contained in:
Robert 2024-03-12 02:00:33 +07:00
parent aec66cdc2c
commit 985ba8b0d0
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -66,7 +66,9 @@ export default function ActionEditor({
: "empty"; : "empty";
const [imageUrl, setImageUrl] = useState<string | null>( const [imageUrl, setImageUrl] = useState<string | null>(
attachmentType === "image" ? initialAction?.fileUrls[0]! : null, initialAction && attachmentType === "image"
? initialAction.fileUrls[0]!
: null,
); );
const [action, setAction] = useState<CommentAction>( const [action, setAction] = useState<CommentAction>(