Skip to content

Commit

Permalink
remove _context from thingEditor upon changes
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed Oct 26, 2023
1 parent b391ad3 commit 38af233
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/modules/things/thingsCRUD.ts
Expand Up @@ -143,6 +143,7 @@ function onThingChanged(thingJson) {
delete thingCopy['_revision'];
delete thingCopy['_created'];
delete thingCopy['_modified'];
delete thingCopy['_context'];
thingJsonEditor.setValue(JSON.stringify(thingCopy, null, 2), -1);
thingJsonEditor.session.getUndoManager().reset();
} else {
Expand Down

0 comments on commit 38af233

Please sign in to comment.