-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix editing and saving of configs on the Config Management page #361
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -812,6 +813,26 @@ export class ZacWrapperService extends ZacWrapperServiceClass { | |||
}); | |||
} | |||
|
|||
redefineObject(obj) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redefineObject
seems like a strange name to me. it feels more like a resetObject
to me, but maybe that's my weak js-foo?
if (Object.keys(obj[prop]).length==0) { | ||
delete obj[prop]; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no 'else' here. feels like a console.log or ... anything ? would be good here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are numbers covered? or just left the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are numbers covered? or just left the same?
Should be left the same
closes #360