Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Fixed the bug which cost Rest-API Dropdown stop working.
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsandaru committed Sep 25, 2020
1 parent 2e24dac commit f2a0301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/controls/DropdownControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
}
// is it http/https?
if (this.control.apiURL.indexOf("http://") < 0 || this.control.apiURL.indexOf("https://") < 0) {
if (this.control.apiURL.indexOf("http://") < 0 && this.control.apiURL.indexOf("https://") < 0) {
throw new TypeError("[Dropdown] Rest-API Endpoint must be valid http/https URL.");
}
Expand Down Expand Up @@ -123,8 +123,8 @@
* [FOR-RestAPI-Dropdown][EVENT]
* Show error for dropdown.
*/
restAPICallErrorHandling() {
console.error(`[DROPDOWN-Control-${this.control.uniqueId}] Request API to get data failed.`);
restAPICallErrorHandling(e) {
console.error(`[DROPDOWN-Control-${this.control.uniqueId}] Request API to get data failed.`, e);
},
},
Expand Down

0 comments on commit f2a0301

Please sign in to comment.