@itilite/iui-user-management 0.3.14 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +19 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -748,34 +748,33 @@ var airlineOptionsfn = function airlineOptionsfn(search, loadedOptions, _ref6) {
|
|
|
748
748
|
headers: {
|
|
749
749
|
Authorization: 'Bearer ' + token
|
|
750
750
|
}
|
|
751
|
-
}).then(function (res) {
|
|
752
|
-
return res.data;
|
|
753
751
|
})).then(function (response) {
|
|
754
|
-
|
|
752
|
+
var mappedValue = response.data.results.map(function (item) {
|
|
755
753
|
return {
|
|
756
754
|
value: item.id,
|
|
757
755
|
label: item.name
|
|
758
756
|
};
|
|
759
|
-
})
|
|
760
|
-
if (placeholder) {
|
|
761
|
-
var placeholderLbl = {
|
|
762
|
-
value: '',
|
|
763
|
-
label: placeholder
|
|
764
|
-
};
|
|
765
|
-
mappedValue.unshift(placeholderLbl);
|
|
766
|
-
}
|
|
757
|
+
});
|
|
767
758
|
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
page: page + 1,
|
|
773
|
-
placeholder: placeholder
|
|
774
|
-
}
|
|
759
|
+
if (placeholder) {
|
|
760
|
+
var placeholderLbl = {
|
|
761
|
+
value: '',
|
|
762
|
+
label: placeholder
|
|
775
763
|
};
|
|
776
|
-
|
|
764
|
+
mappedValue.unshift(placeholderLbl);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
return {
|
|
768
|
+
options: mappedValue,
|
|
769
|
+
hasMore: !!response.data.next,
|
|
770
|
+
additional: {
|
|
771
|
+
page: page + 1,
|
|
772
|
+
placeholder: placeholder
|
|
773
|
+
}
|
|
774
|
+
};
|
|
777
775
|
});
|
|
778
|
-
}, function () {
|
|
776
|
+
}, function (error) {
|
|
777
|
+
console.log(error);
|
|
779
778
|
return {
|
|
780
779
|
options: [],
|
|
781
780
|
hasMore: false,
|