Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Populate edit dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <[email protected]>
  • Loading branch information
votdev committed Sep 12, 2023
1 parent 980ae4d commit e6195ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/objectStorage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ class ObjectStore extends React.Component {
})
}

showEditModal = () => {
showEditModal = (record) => {
this.setState({
...this.state,
selected: record,
editModalVisible: true,
editModalKey: Math.random(),
})
Expand Down Expand Up @@ -107,7 +108,7 @@ class ObjectStore extends React.Component {
}

const editModalProps = {
selected: {},
selected: this.state.selected,
visible: this.state.editModalVisible,
onCancel() {
me.setState({
Expand Down

0 comments on commit e6195ba

Please sign in to comment.