From e6195baad77536b6cc935686965e4ce52327e61d Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 12 Sep 2023 16:07:32 +0200 Subject: [PATCH] Populate edit dialog Signed-off-by: Volker Theile --- src/routes/objectStorage/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/objectStorage/index.js b/src/routes/objectStorage/index.js index f583949e1..c909cc18f 100644 --- a/src/routes/objectStorage/index.js +++ b/src/routes/objectStorage/index.js @@ -37,9 +37,10 @@ class ObjectStore extends React.Component { }) } - showEditModal = () => { + showEditModal = (record) => { this.setState({ ...this.state, + selected: record, editModalVisible: true, editModalKey: Math.random(), }) @@ -107,7 +108,7 @@ class ObjectStore extends React.Component { } const editModalProps = { - selected: {}, + selected: this.state.selected, visible: this.state.editModalVisible, onCancel() { me.setState({