@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
|
@@ -6656,7 +6656,7 @@ function Notes() {
|
|
|
6656
6656
|
var _item$static_child_ma;
|
|
6657
6657
|
return item == null || (_item$static_child_ma = item.static_child_mappings) == null ? void 0 : _item$static_child_ma.filter(function (child) {
|
|
6658
6658
|
var _child$child_module;
|
|
6659
|
-
return (child == null || (_child$child_module = child.child_module) == null ? void 0 : _child$child_module.name) === '
|
|
6659
|
+
return (child == null || (_child$child_module = child.child_module) == null ? void 0 : _child$child_module.name) === 'ORDER_NOTE';
|
|
6660
6660
|
}).map(function (child) {
|
|
6661
6661
|
var _child$child_module2, _child$parent_module;
|
|
6662
6662
|
return {
|
|
@@ -6683,9 +6683,9 @@ function Notes() {
|
|
|
6683
6683
|
}
|
|
6684
6684
|
if (!NotesLoading && NotesData != null && NotesData.data) {
|
|
6685
6685
|
var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
|
|
6686
|
-
return item['
|
|
6686
|
+
return item['ORDER_NOTE'] || item['ORDER'] || item['ORDER_RETURN'];
|
|
6687
6687
|
}).map(function (item) {
|
|
6688
|
-
return [item['
|
|
6688
|
+
return [item['ORDER_NOTE'], item['ORDER'], item['ORDER_RETURN']];
|
|
6689
6689
|
}).flat().filter(Boolean);
|
|
6690
6690
|
var combinedArray = updatedData == null ? void 0 : updatedData.flat();
|
|
6691
6691
|
combinedArray.sort(function (a, b) {
|
|
@@ -9626,7 +9626,7 @@ function NotesTable() {
|
|
|
9626
9626
|
var _item$static_child_ma;
|
|
9627
9627
|
var orderProductId = item == null || (_item$static_child_ma = item.static_child_mappings.find(function (i) {
|
|
9628
9628
|
var _i$child_module;
|
|
9629
|
-
return (i == null || (_i$child_module = i.child_module) == null ? void 0 : _i$child_module.name) === '
|
|
9629
|
+
return (i == null || (_i$child_module = i.child_module) == null ? void 0 : _i$child_module.name) === 'ORDER_PRODUCT';
|
|
9630
9630
|
})) == null || (_item$static_child_ma = _item$static_child_ma.child_module) == null ? void 0 : _item$static_child_ma.id;
|
|
9631
9631
|
return {
|
|
9632
9632
|
id: item == null ? void 0 : item.id,
|
|
@@ -9653,7 +9653,7 @@ function NotesTable() {
|
|
|
9653
9653
|
if (!NotesLoading && NotesData != null && NotesData.data) {
|
|
9654
9654
|
var _NotesData$data$, _NotesData$data$2;
|
|
9655
9655
|
var OrdersData = (NotesData == null || (_NotesData$data$ = NotesData.data[0]) == null ? void 0 : _NotesData$data$.ORDER) || [];
|
|
9656
|
-
var OrderNotesData = (NotesData == null || (_NotesData$data$2 = NotesData.data[1]) == null ? void 0 : _NotesData$data$2['
|
|
9656
|
+
var OrderNotesData = (NotesData == null || (_NotesData$data$2 = NotesData.data[1]) == null ? void 0 : _NotesData$data$2['ORDER_PRODUCT']) || [];
|
|
9657
9657
|
var allNotes = [].concat(OrdersData, OrderNotesData);
|
|
9658
9658
|
setNotes(allNotes);
|
|
9659
9659
|
setNoteLoadingStore(NotesLoading);
|