@bjsdistribution/dms-client-return 0.1.47-prod → 0.1.48-prod
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/dms-client-return.cjs.development.js +5 -5
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +5 -5
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-view/notes/index.tsx +4 -4
- package/src/components/order-view/order-actions/actions/confirm-order/tables/NotesTable.tsx +2 -2
|
@@ -6648,7 +6648,7 @@ function Notes() {
|
|
|
6648
6648
|
var _item$static_child_ma;
|
|
6649
6649
|
return item == null || (_item$static_child_ma = item.static_child_mappings) == null ? void 0 : _item$static_child_ma.filter(function (child) {
|
|
6650
6650
|
var _child$child_module;
|
|
6651
|
-
return (child == null || (_child$child_module = child.child_module) == null ? void 0 : _child$child_module.name) === '
|
|
6651
|
+
return (child == null || (_child$child_module = child.child_module) == null ? void 0 : _child$child_module.name) === 'ORDER_NOTE';
|
|
6652
6652
|
}).map(function (child) {
|
|
6653
6653
|
var _child$child_module2, _child$parent_module;
|
|
6654
6654
|
return {
|
|
@@ -6675,9 +6675,9 @@ function Notes() {
|
|
|
6675
6675
|
}
|
|
6676
6676
|
if (!NotesLoading && NotesData != null && NotesData.data) {
|
|
6677
6677
|
var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
|
|
6678
|
-
return item['
|
|
6678
|
+
return item['ORDER_NOTE'] || item['ORDER'] || item['ORDER_RETURN'];
|
|
6679
6679
|
}).map(function (item) {
|
|
6680
|
-
return [item['
|
|
6680
|
+
return [item['ORDER_NOTE'], item['ORDER'], item['ORDER_RETURN']];
|
|
6681
6681
|
}).flat().filter(Boolean);
|
|
6682
6682
|
var combinedArray = updatedData == null ? void 0 : updatedData.flat();
|
|
6683
6683
|
combinedArray.sort(function (a, b) {
|
|
@@ -9618,7 +9618,7 @@ function NotesTable() {
|
|
|
9618
9618
|
var _item$static_child_ma;
|
|
9619
9619
|
var orderProductId = item == null || (_item$static_child_ma = item.static_child_mappings.find(function (i) {
|
|
9620
9620
|
var _i$child_module;
|
|
9621
|
-
return (i == null || (_i$child_module = i.child_module) == null ? void 0 : _i$child_module.name) === '
|
|
9621
|
+
return (i == null || (_i$child_module = i.child_module) == null ? void 0 : _i$child_module.name) === 'ORDER_PRODUCT';
|
|
9622
9622
|
})) == null || (_item$static_child_ma = _item$static_child_ma.child_module) == null ? void 0 : _item$static_child_ma.id;
|
|
9623
9623
|
return {
|
|
9624
9624
|
id: item == null ? void 0 : item.id,
|
|
@@ -9645,7 +9645,7 @@ function NotesTable() {
|
|
|
9645
9645
|
if (!NotesLoading && NotesData != null && NotesData.data) {
|
|
9646
9646
|
var _NotesData$data$, _NotesData$data$2;
|
|
9647
9647
|
var OrdersData = (NotesData == null || (_NotesData$data$ = NotesData.data[0]) == null ? void 0 : _NotesData$data$.ORDER) || [];
|
|
9648
|
-
var OrderNotesData = (NotesData == null || (_NotesData$data$2 = NotesData.data[1]) == null ? void 0 : _NotesData$data$2['
|
|
9648
|
+
var OrderNotesData = (NotesData == null || (_NotesData$data$2 = NotesData.data[1]) == null ? void 0 : _NotesData$data$2['ORDER_PRODUCT']) || [];
|
|
9649
9649
|
var allNotes = [].concat(OrdersData, OrderNotesData);
|
|
9650
9650
|
setNotes(allNotes);
|
|
9651
9651
|
setNoteLoadingStore(NotesLoading);
|