next-helios-fe 1.4.15 → 1.4.16
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 +1 -1
- package/package.json +1 -1
- package/src/components/table/index.tsx +2 -2
package/package.json
CHANGED
@@ -129,7 +129,7 @@ export const Table: TableComponentProps = ({
|
|
129
129
|
.map((item) => {
|
130
130
|
data
|
131
131
|
.map((dataItem) => dataItem[item.key as keyof typeof dataItem])
|
132
|
-
.sort((a, b) => a.localeCompare(b))
|
132
|
+
.sort((a, b) => (a || "").localeCompare(b || ""))
|
133
133
|
.filter((value, index, self) => self.indexOf(value) === index)
|
134
134
|
.map((value) => {
|
135
135
|
if (!categoryFilter.includes(value)) {
|
@@ -284,7 +284,7 @@ export const Table: TableComponentProps = ({
|
|
284
284
|
(dataItem) =>
|
285
285
|
dataItem[item.key as keyof typeof dataItem]
|
286
286
|
)
|
287
|
-
.sort((a, b) => a.localeCompare(b))
|
287
|
+
.sort((a, b) => (a || "").localeCompare(b || ""))
|
288
288
|
.filter(
|
289
289
|
(value, index, self) => self.indexOf(value) === index
|
290
290
|
)
|