Skip to content

Commit

Permalink
delete false and null defaults from string params in json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Aug 10, 2023
1 parent 4cde306 commit 65855f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/assets/js/nf-core-schema-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ function clean_empty_param_keys(param) {
if (param.hasOwnProperty('description') && param['description'] === '') {
delete param['description'];
}
if (param.hasOwnProperty('default') && (param['default'] === '' || param['default'] === false || param['default'] === null)) {
if (param.hasOwnProperty('default') && (param['default'] === '' || param['default'] === false || param['default'] === 'false' || param['default'] === null || param['default'] === 'null')) {
delete param['default'];
}
if (param.hasOwnProperty('help_text') && param['help_text'] === '') {
Expand Down

0 comments on commit 65855f7

Please sign in to comment.