Skip to content

Commit

Permalink
#2484: allow quiz questions answer to be "null" word; added validatio…
Browse files Browse the repository at this point in the history
…n for every modal to ensure that "null" value is not allowed as items' names and ids
  • Loading branch information
EVOFORGE\dimay committed Nov 21, 2023
1 parent 60a5bd9 commit c0e51fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dashboard/src/validators/NotNullValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { extend } from 'vee-validate';
const validator = {
message: (field) => `Null is not allowed for ${field}`,
validate(value) {
console.log(value);
return !value || value.toLowerCase() !== 'null';
},
};
Expand Down

0 comments on commit c0e51fc

Please sign in to comment.