Skip to content

Commit

Permalink
persists object on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Jun 3, 2022
1 parent 1977ad3 commit c82a294
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/theme/Widgets/DataProvenance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export const DataProvenance = (props) => {
onClick={() => {
onChange(
id,
flatListValue.filter((v, i) => i !== index),
flatListValue
.filter((v, i) => i !== index)
.reduce((a, v) => ({ ...a, [v['@id']]: v }), {}),
);
}}
>
Expand Down

0 comments on commit c82a294

Please sign in to comment.