Skip to content

Commit

Permalink
fix: Handle incident coments (#2152)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixhub authored Sep 19, 2024
1 parent cef57b1 commit 9fe971a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/ui/src/app/Admin/CatalogItemAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const CatalogItemAdmin: React.FC = () => {
async function saveForm(comments?: comment[]) {
setIsLoading(true);
if (comments === null || comments === undefined) {
comments = catalogItemIncident ? JSON.parse(catalogItemIncident.comments) : [];
comments = catalogItemIncident?.comments ? JSON.parse(catalogItemIncident.comments) : [];
}
if (comment) {
comments.push({
Expand Down

0 comments on commit 9fe971a

Please sign in to comment.