From 1bff72c10ffd23ea361f17d727e385efc3dbe5dc Mon Sep 17 00:00:00 2001 From: ay-bh Date: Sat, 2 Nov 2024 10:50:24 -0400 Subject: [PATCH] Add null check for issue title validation --- modules/issue_tracker/jsx/IssueCard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/issue_tracker/jsx/IssueCard.js b/modules/issue_tracker/jsx/IssueCard.js index ee490964ec8..892a38b95b7 100644 --- a/modules/issue_tracker/jsx/IssueCard.js +++ b/modules/issue_tracker/jsx/IssueCard.js @@ -36,7 +36,7 @@ const IssueCard = React.memo(function IssueCard({ const handleSubmit = (e) => { e.preventDefault(); - if (!tempEditedIssue.title.trim()) { + if (!tempEditedIssue.title || !tempEditedIssue.title.trim()) { showAlertMessage('error', 'Title cannot be empty'); return; }