Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
bctcvai committed Dec 13, 2024
1 parent b49e45e commit dcee90b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ui/src/js/project-settings/attributes/attributes-form.js
Original file line number Diff line number Diff line change
@@ -787,7 +787,7 @@ export class AttributesForm extends TatorElement {
"fully-reversible": [],
"reversible-with-warning": [],
irreversible: [],
}
},
};
}

@@ -934,7 +934,12 @@ export class AttributesForm extends TatorElement {

if (defaultVal !== null && defaultVal !== "null") {
// backend does this but not when value is ""
if (dtype == "int" || dtype == "float" || dtype == "blob" || dtype == "string") {
if (
dtype == "int" ||
dtype == "float" ||
dtype == "blob" ||
dtype == "string"
) {
if (String(defaultVal).trim() === "") {
delete formData["default"];
} else {

0 comments on commit dcee90b

Please sign in to comment.