Skip to content
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

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

rgallettonf
Copy link
Contributor

closes #360

@rgallettonf rgallettonf requested review from a team as code owners June 10, 2024 18:26
@rgallettonf rgallettonf linked an issue Jun 10, 2024 that may be closed by this pull request
Copy link

vercel bot commented Jun 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ziti-console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2024 6:39pm

@@ -812,6 +813,26 @@ export class ZacWrapperService extends ZacWrapperServiceClass {
});
}

redefineObject(obj) {
Copy link
Member

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];
}
}
Copy link
Member

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?

Copy link
Member

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?

Copy link
Contributor Author

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

@rgallettonf rgallettonf merged commit 12f7303 into main Jun 10, 2024
7 checks passed
@rgallettonf rgallettonf deleted the 360-editing-configs branch June 10, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't edit existing configs using edit form on /configs page
2 participants