Skip to content
Snippets Groups Projects
Commit 7add36dd authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Fix api calls with empty person identifier

parent 678569c6
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ class PersonProfile extends VPULitElement { ...@@ -49,6 +49,7 @@ class PersonProfile extends VPULitElement {
}, {}, that.lang); }, {}, that.lang);
break; break;
case 'value': case 'value':
if (this.value !== '') {
const apiUrl = this.entryPointUrl + '/people/' + this.value; const apiUrl = this.entryPointUrl + '/people/' + this.value;
// load person // load person
...@@ -62,6 +63,7 @@ class PersonProfile extends VPULitElement { ...@@ -62,6 +63,7 @@ class PersonProfile extends VPULitElement {
.then((person) => { .then((person) => {
this.person = person; this.person = person;
}); });
}
break; break;
default: default:
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment