Skip to content

Commit c48ec40

Browse files
authored
Merge pull request #63 from Suntgr/hotfix/rollback-changes
fix: rolling back the changes directly
2 parents eeaad97 + 4c17310 commit c48ec40

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/js/index.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,21 +205,27 @@ class ReactJsonView extends React.PureComponent {
205205
}
206206

207207
updateSrc = () => {
208-
const { name, namespace, newValue, existingValue, updatedSrc, type } =
209-
ObjectAttributes.get(this.rjvId, 'action', 'variable-update')
208+
const {
209+
name,
210+
namespace,
211+
new_value: newValue,
212+
existing_value: existingValue,
213+
updated_src: updatedSrc,
214+
type
215+
} = ObjectAttributes.get(this.rjvId, 'action', 'variable-update')
210216
const { onEdit, onDelete, onAdd } = this.props
211217

212218
const { src } = this.state
213219

214220
let result
215221

216222
const onEditPayload = {
217-
existingSrc: src,
218-
newValue,
219-
updatedSrc,
223+
existing_src: src,
224+
new_value: newValue,
225+
updated_src: updatedSrc,
220226
name,
221227
namespace,
222-
existingValue
228+
existing_value: existingValue
223229
}
224230

225231
switch (type) {

0 commit comments

Comments
 (0)