Skip to content

Commit

Permalink
Sonar Commit
Browse files Browse the repository at this point in the history
Commit for resolving Sonar Cloud issues
  • Loading branch information
TomDijkema committed Dec 11, 2024
1 parent 7e81c34 commit a747032
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/app/utilities/AnnotateUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,6 @@ const GenerateAnnotationFormFieldProperties = async (jsonPath: string, superClas
formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = {};

/* Check if (default) values are present, if so, set form values property with them */
// if (!isEmpty(classFormValues)) {
// formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = classFormValues;
// } else if (motivation !== 'oa:editing') {
// formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = CheckForClassDefaultValues(classProperty.value.replace(`$`, jsonPath)) ?? {};
// }
formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = DepictClassValues(
classProperty.value.replace(`$`, jsonPath), classFormValues
);
Expand All @@ -289,14 +284,6 @@ const GenerateAnnotationFormFieldProperties = async (jsonPath: string, superClas
formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = DepictClassValues(
classProperty.value.replace(`$`, jsonPath), classValues, true, localClassValues
);

// if (classValues) {
// formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = classValues;
// } else if (!isEmpty(localClassValues)) {
// formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = localClassValues;
// } else if (motivation !== 'oa:editing') {
// formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = [CheckForClassDefaultValues(classProperty.value.replace(`$`, jsonPath))];
// }
} else {
formValues[FormatFieldNameFromJsonPath(classProperty.value.replace(`$`, jsonPath))] = CheckForClassDefaultValues(classProperty.value.replace(`$`, jsonPath)) ?? {};
}
Expand Down

0 comments on commit a747032

Please sign in to comment.