From 08d1596f61201fbc5d80fafd14ebd30df9c27e2e Mon Sep 17 00:00:00 2001 From: Douglas Muraoka Date: Thu, 29 Aug 2019 13:36:45 -0300 Subject: [PATCH] fix(Database Browser): Cell edit not updating partial view --- src/dashboard/Data/Browser/BrowserTable.react.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dashboard/Data/Browser/BrowserTable.react.js b/src/dashboard/Data/Browser/BrowserTable.react.js index 9ec2a39531..f88ce875a1 100644 --- a/src/dashboard/Data/Browser/BrowserTable.react.js +++ b/src/dashboard/Data/Browser/BrowserTable.react.js @@ -145,8 +145,14 @@ export default class BrowserTable extends React.Component { let index = i - this.state.offset; let obj = this.props.data[i]; const currentCol = this.props.current && this.props.current.row === i ? this.props.current.col : undefined; + + // Needed in order to force BrowserRow to update and re-render (and possibly update columns values), + // since the "obj" instance will only be updated when the update request is done. + const isEditingRow = this.props.current && this.props.current.row === i && !!this.props.editing; + rows[index] =