Skip to content

Commit

Permalink
Merge pull request #63 from Suntgr/hotfix/rollback-changes
Browse files Browse the repository at this point in the history
fix: rolling back the changes directly
  • Loading branch information
Kikobeats authored Feb 15, 2025
2 parents eeaad97 + 4c17310 commit c48ec40
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,21 +205,27 @@ class ReactJsonView extends React.PureComponent {
}

updateSrc = () => {
const { name, namespace, newValue, existingValue, updatedSrc, type } =
ObjectAttributes.get(this.rjvId, 'action', 'variable-update')
const {
name,
namespace,
new_value: newValue,
existing_value: existingValue,
updated_src: updatedSrc,
type
} = ObjectAttributes.get(this.rjvId, 'action', 'variable-update')
const { onEdit, onDelete, onAdd } = this.props

const { src } = this.state

let result

const onEditPayload = {
existingSrc: src,
newValue,
updatedSrc,
existing_src: src,
new_value: newValue,
updated_src: updatedSrc,
name,
namespace,
existingValue
existing_value: existingValue
}

switch (type) {
Expand Down

0 comments on commit c48ec40

Please sign in to comment.