Skip to content

Commit

Permalink
Some polish
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Nov 10, 2021
1 parent de7d6c7 commit 5e5fc1a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function DiscardEntityChangesPanel( { closePanel, savables } ) {
__experimentalResetSpecifiedEntityEdits: resetSpecifiedEntityEdits,
} = useDispatch( coreStore );

// Unchecked entities to be ignored by discard function.
// Selected entities to be discarded.
const [ selectedEntities, _setSelectedEntities ] = useState( [] );

const setSelectedEntities = ( { kind, name, key, property }, checked ) => {
Expand Down Expand Up @@ -98,7 +98,6 @@ export default function DiscardEntityChangesPanel( { closePanel, savables } ) {
onChange={ ( value ) =>
setSelectedEntities( record, value )
}
//closePanel={ closePanel }
/>
);
} ) }
Expand Down

0 comments on commit 5e5fc1a

Please sign in to comment.