From 985ba8b0d0ec9550dff6198952df11961e7ee3f3 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 12 Mar 2024 02:00:33 +0700 Subject: [PATCH] fixed linting --- src/widgets/action-editor/ui/ActionEditor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/action-editor/ui/ActionEditor.tsx b/src/widgets/action-editor/ui/ActionEditor.tsx index 5802aee..5674399 100644 --- a/src/widgets/action-editor/ui/ActionEditor.tsx +++ b/src/widgets/action-editor/ui/ActionEditor.tsx @@ -66,7 +66,9 @@ export default function ActionEditor({ : "empty"; const [imageUrl, setImageUrl] = useState( - attachmentType === "image" ? initialAction?.fileUrls[0]! : null, + initialAction && attachmentType === "image" + ? initialAction.fileUrls[0]! + : null, ); const [action, setAction] = useState(