diff --git a/resources/js/admin/product.js b/resources/js/admin/product.js index fe9ff4a..f8ecbe4 100644 --- a/resources/js/admin/product.js +++ b/resources/js/admin/product.js @@ -119,7 +119,10 @@ window.ProductAdmin=function (options,ProductItem) { { "targets": 1, "render": function ( data, type, row ) { - return type === "sort" ? data.latinise() : data; + if (type === "sort") { + return (data && typeof data === 'string') ? data.latinise() : (data ?? ''); + } + return data; }, }, //{ "visible": false, "targets": [ 0 ] } @@ -473,7 +476,10 @@ window.ProductAdmin=function (options,ProductItem) { { "targets": 1, "render": function ( data, type, row ) { - return type === "sort" ? data.latinise() : data; + if (type === "sort") { + return (data && typeof data === 'string') ? data.latinise() : (data ?? ''); + } + return data; }, }, //{ "visible": false, "targets": [ 0 ] }