Skip to content

Commit aa75c46

Browse files
committed
Add check for note actions before checking length
1 parent a040ee5 commit aa75c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/js/experimental/src/inbox-note/inbox-note.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const InboxNoteCard: React.FC< InboxNoteProps > = ( {
171171
const actionWrapperClassName = classnames(
172172
'woocommerce-inbox-message__actions',
173173
{
174-
'has-multiple-actions': note.actions.length > 1,
174+
'has-multiple-actions': note.actions?.length > 1,
175175
}
176176
);
177177

0 commit comments

Comments
 (0)