Commit 1d872c1d authored by Florian Azizian's avatar Florian Azizian

FEAT #12016 TIME 1 check undefined errors

parent a2f7dac7
......@@ -366,7 +366,7 @@ ALTER TABLE notif_email_stack ALTER COLUMN attachments TYPE text;
ALTER TABLE tags ALTER COLUMN label TYPE character varying(128);
UPDATE priorities SET delays = 30 WHERE delays IS NULL;
ALTER TABLE priorities ALTER COLUMN delays SET NOT NULL;
UPDATE listmodels SET title = object_id WHERE title IS NULL;
/* REFACTORING SUPPRESSION */
DO $$ BEGIN
......
......@@ -20,7 +20,7 @@
"chosen-js": "^1.8.7",
"core-js": "^2.6.9",
"jquery": "^3.4.1",
"jquery-typeahead": "^2.10.6",
"jquery-typeahead": "^2.10.7",
"jquery.nicescroll": "~3.6.8",
"jstree-bootstrap-theme": "^1.0.1",
"ng2-pdf-viewer": "^5.3.4",
......@@ -50,7 +50,7 @@
"@angular/platform-browser-dynamic": "^8.2.8",
"@angular/platform-server": "^8.2.8",
"@angular/router": "^8.2.8",
"@types/datatables.net": "^1.10.17",
"@types/datatables.net": "^1.10.18",
"@types/jquery": "^2.0.53",
"@types/node": "^7.10.6",
"ajv": "^6.10.2",
......
......@@ -118,7 +118,7 @@ export class UsersAdministrationComponent implements OnInit {
this.http.get('../../rest/users/' + user.id + '/isDeletable')
.subscribe((response: any) => {
if (response.errors) {
if (response && response.hasOwnProperty('errors')) {
this.notify.error(response.errors);
} else {
user.isDeletable = response.isDeletable
......@@ -297,7 +297,7 @@ export class UsersAdministrationComponent implements OnInit {
//update listInstances
this.http.put('../../rest/listinstances', user.redirectListInstances)
.subscribe((data: any) => {
if (data.errors) {
if (data && data.hasOwnProperty('errors')) {
this.notify.error(data.errors);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment