Skip to content

Commit

Permalink
fix: meta description error can sometimes be undefined (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnar-bin authored Jan 3, 2024
1 parent 699c3d1 commit 60d90f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export default connect()(function MetaDescription({
valueLength={meta_description?.length ?? 0}
errors={
error
? { ...errors.metaDescription, CUSTOM_ERROR: error }
? {
...(errors?.metaDescription ? errors.metaDescription : {}),
CUSTOM_ERROR: error,
}
: errors?.metaDescription
}
>
Expand Down

0 comments on commit 60d90f8

Please sign in to comment.