Skip to content

Commit

Permalink
Remove unnecessary use of spread operator
Browse files Browse the repository at this point in the history
As a copy of the state was originally passed to the function.
  • Loading branch information
donnapep committed Nov 7, 2024
1 parent 9fb7fe6 commit 2a5bbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/admin/students/student-action-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const StudentActionMenu = ( {
setAction,
setModalOpen
).then( ( response ) => {
setControls( [ ...response ] );
setControls( response );
} );
}, [ defaultControls ] );

Expand Down

0 comments on commit 2a5bbc7

Please sign in to comment.