Remove inbox_action_click event -- this is called from backend by triggerNoteAction (https://github.com/woocommerce/woocommerce-admin/pull/8376)
This commit is contained in:
parent
01e5cbdd7f
commit
a2dfbffe89
|
@ -272,18 +272,6 @@ const InboxPanel = ( { showHeader = true } ) => {
|
|||
}
|
||||
};
|
||||
|
||||
const onNoteActionClick = ( note, action ) => {
|
||||
triggerNoteAction( note.id, action.id );
|
||||
const screen = getScreenName();
|
||||
recordEvent( 'inbox_action_click', {
|
||||
note_content: note.content,
|
||||
note_name: note.name,
|
||||
note_title: note.title,
|
||||
note_type: note.type,
|
||||
screen,
|
||||
} );
|
||||
};
|
||||
|
||||
if ( isError ) {
|
||||
const title = __(
|
||||
'There was an error getting your inbox. Please try again.',
|
||||
|
@ -332,7 +320,9 @@ const InboxPanel = ( { showHeader = true } ) => {
|
|||
isBatchUpdating,
|
||||
notes,
|
||||
onDismiss,
|
||||
onNoteActionClick,
|
||||
onNoteActionClick: ( note, action ) => {
|
||||
triggerNoteAction( note.id, action.id );
|
||||
},
|
||||
setShowDismissAllModal,
|
||||
showHeader,
|
||||
} ) }
|
||||
|
|
Loading…
Reference in New Issue