Rectification d'un bogue mineur

master
Raphael LACOTE 2 years ago
parent ff9fe8eb10
commit 72512b2cb5

@ -12,10 +12,12 @@ export default {
try { try {
this.errorMessage = ''; this.errorMessage = '';
if (!this.id) { if (!this.id) {
this.name = '';
throw new RequiredFieldError("ID"); throw new RequiredFieldError("ID");
return; return;
} }
if (!this.name) { if (!this.name) {
this.id = '';
throw new RequiredFieldError("Name"); throw new RequiredFieldError("Name");
return; return;
} }

Loading…
Cancel
Save