@plasmicpkgs/plasmic-rich-components 1.0.194 → 1.0.196

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 CHANGED
@@ -1701,7 +1701,8 @@ function RichTable(props) {
1701
1701
  rowKey,
1702
1702
  scopeClassName
1703
1703
  } = props;
1704
- const normalizedData = dataSources.useNormalizedData(rawData);
1704
+ const isClient = useIsClient();
1705
+ const normalizedData = dataSources.useNormalizedData(isClient ? rawData : []);
1705
1706
  const data = React.useMemo(() => {
1706
1707
  if (!(normalizedData == null ? void 0 : normalizedData.data)) {
1707
1708
  return normalizedData;
@@ -1715,7 +1716,6 @@ function RichTable(props) {
1715
1716
  normalized
1716
1717
  );
1717
1718
  const rowSelectionProps = useRowSelectionProps(data, props);
1718
- const isClient = useIsClient();
1719
1719
  if (!isClient) {
1720
1720
  return null;
1721
1721
  }
@@ -1896,7 +1896,7 @@ function useColumnDefinitions(data, props) {
1896
1896
  renderFormItem: (_, { defaultRender }) => {
1897
1897
  return defaultRender(_);
1898
1898
  },
1899
- render: (value, record, rowIndex) => {
1899
+ render: (_value, record, _rowIndex) => {
1900
1900
  return renderValue(record, cconfig);
1901
1901
  }
1902
1902
  };