next-helios-fe 1.7.7 → 1.7.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -142,7 +142,7 @@ export const Table: TableComponentProps = ({
142
142
  }, [header, data]);
143
143
 
144
144
  const handleExportData = (dataTitle: string, data: any[]) => {
145
- const fileName = `${dataTitle}-${dayjs().format("YYYY-MM-DD_HH-mm-ss")}`;
145
+ const fileName = `${dataTitle}_${dayjs().format("YYYY-MM-DD_HH:mm")}`;
146
146
  const worksheet = xlsx.utils.json_to_sheet(data);
147
147
  const workbook = xlsx.utils.book_new();
148
148
  xlsx.utils.book_append_sheet(workbook, worksheet, "Data");
@@ -443,7 +443,7 @@ export const Table: TableComponentProps = ({
443
443
  key={headerItem.key}
444
444
  className="px-4 py-1.5 bg-secondary-bg whitespace-nowrap"
445
445
  >
446
- {headerItem.render(item)}
446
+ {headerItem.render(item) || "-"}
447
447
  </td>
448
448
  );
449
449
  } else {
@@ -452,7 +452,7 @@ export const Table: TableComponentProps = ({
452
452
  key={headerItem.key}
453
453
  className="px-4 py-1.5 bg-secondary-bg whitespace-nowrap"
454
454
  >
455
- {item[headerItem.key as keyof typeof item]}
455
+ {item[headerItem.key as keyof typeof item] || "-"}
456
456
  </td>
457
457
  );
458
458
  }