Skip to content

Commit 6685c19

Browse files
author
Valeriy Nayda
committed
MSI: Integrate the Sales Channel output to the Manage Stock view
1 parent 21082cd commit 6685c19

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/InventorySales/view/adminhtml/web/js/stock/grid/cell

1 file changed

+5
-2
lines changed

app/code/Magento/InventorySales/view/adminhtml/web/js/stock/grid/cell/sales-channels.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,19 @@ define([
1919
* each over all sales channels and render html for each channel
2020
*
2121
* @param {Object} records contains all results
22-
* @return {String} return rendered html content
22+
* @returns {String} return rendered html content
2323
*/
2424
renderRecords: function (records) {
2525
var salesChannels = records['sales_channels'],
2626
htmlContent = '',
2727
channelType;
2828

2929
if (typeof salesChannels !== 'object') {
30-
throw new Error("Provided wrong salesChannel type " + typeof salesChannels + ' the correct type would be object.');
30+
throw new Error(
31+
'Provided wrong salesChannel type ' + typeof salesChannels + ' the correct type would be object.'
32+
);
3133
}
34+
3235
for (channelType in salesChannels) {
3336
htmlContent += mageTemplate(
3437
channelTemplate,

0 commit comments

Comments
 (0)