@overmap-ai/blocks 1.0.27-custom-table-component.2 → 1.0.27-custom-table-component.3

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/blocks.js CHANGED
@@ -4027,6 +4027,8 @@ const Table = memo((props) => {
4027
4027
  return sortDirection === "asc" ? -1 : 1;
4028
4028
  } else if (!!valueA && !valueB) {
4029
4029
  return sortDirection === "asc" ? 1 : -1;
4030
+ } else if (!valueA || !valueB) {
4031
+ return 0;
4030
4032
  }
4031
4033
  if (typeof valueA === "number" && typeof valueB === "number") {
4032
4034
  return sortDirection === "asc" ? valueA - valueB : valueB - valueA;