fix bug where json editing doesn't save properly for secrets (#5660)

This commit is contained in:
madalynrose 2018-10-31 18:37:23 -04:00 committed by GitHub
parent 69c9cfad1a
commit b44e88fa99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -290,6 +290,7 @@ export default Component.extend(FocusOnInsertMixin, {
if (noErrors) {
try {
this.secretData.fromJSONString(val);
set(this.modelForData, 'secretData', this.secretData.toJSON());
} catch (e) {
this.set('error', e.message);
}