Skip to content

Commit

Permalink
Fixed crash when topic is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
masvelio committed Sep 13, 2024
1 parent 5dd73c8 commit 34fbbfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const ManageTopicsSection = () => {
buttonHeight="med"
onClick={handleReversion}
disabled={initialFeaturedTopics.every(
(value, index) => value.id === featuredTopics[index].id,
(value, index) => value.id === featuredTopics?.[index]?.id,
)}
/>
<CWButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const ManageTopicsSectionOld = () => {
buttonHeight="med"
onClick={handleReversion}
disabled={initialFeaturedTopics.every(
(value, index) => value.id === featuredTopics[index].id,
(value, index) => value.id === featuredTopics?.[index]?.id,
)}
/>
<CWButton
Expand Down

0 comments on commit 34fbbfe

Please sign in to comment.