Skip to content

Commit

Permalink
Workaround for #130
Browse files Browse the repository at this point in the history
  • Loading branch information
bindeali committed Nov 14, 2024
1 parent 50b3daa commit 833dd21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/model/form/ValidationResult.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import OntoValidationResult from "../ValidationResult";
import Utils from "../../util/Utils";
import { getShortLocale } from "../../util/IntlUtil";
import Validation from "../../util/Validation";
import Utils from "../../util/Utils";
import OntoValidationResult from "../ValidationResult";

export enum Severity {
BLOCKER, // Blocker severity indicates the form cannot be submitted and the input should have an error boundary
Expand Down Expand Up @@ -42,7 +41,8 @@ export default class ValidationResult {
locale: string
) {
return new ValidationResult(
Validation.toSeverity(result.sourceShape.iri),
Severity.WARNING,
// Validation.toSeverity(result.sourceShape.iri),
Utils.sanitizeArray(result.message).find(
(ls) => ls.language === getShortLocale(locale)
)?.value
Expand Down

0 comments on commit 833dd21

Please # to comment.