Skip to content

Commit

Permalink
fixup! fixup! fixup! feat: Implement catalog_incident api
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixhub committed Sep 18, 2024
1 parent 324cd85 commit bf744a1
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 @@ -104,7 +104,7 @@ const CatalogItemAdmin: React.FC = () => {
async function saveForm(comments?: comment[]) {
setIsLoading(true);
if (comments === null || comments === undefined) {
comments = JSON.parse(catalogItemIncident?.comments) || [];
comments = catalogItemIncident ? JSON.parse(catalogItemIncident.comments) : [];
}
if (comment) {
comments.push({
Expand Down

0 comments on commit bf744a1

Please sign in to comment.