@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/.tsbuildinfo +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/plasmic-rich-components.esm.js +3 -3
- package/dist/plasmic-rich-components.esm.js.map +1 -1
- package/package.json +4 -4
- package/skinny/rich-table/index.cjs.js +3 -3
- package/skinny/rich-table/index.cjs.js.map +1 -1
- package/skinny/rich-table/index.esm.js +3 -3
- package/skinny/rich-table/index.esm.js.map +1 -1
|
@@ -1687,7 +1687,8 @@ function RichTable(props) {
|
|
|
1687
1687
|
rowKey,
|
|
1688
1688
|
scopeClassName
|
|
1689
1689
|
} = props;
|
|
1690
|
-
const
|
|
1690
|
+
const isClient = useIsClient();
|
|
1691
|
+
const normalizedData = useNormalizedData(isClient ? rawData : []);
|
|
1691
1692
|
const data = useMemo(() => {
|
|
1692
1693
|
if (!(normalizedData == null ? void 0 : normalizedData.data)) {
|
|
1693
1694
|
return normalizedData;
|
|
@@ -1701,7 +1702,6 @@ function RichTable(props) {
|
|
|
1701
1702
|
normalized
|
|
1702
1703
|
);
|
|
1703
1704
|
const rowSelectionProps = useRowSelectionProps(data, props);
|
|
1704
|
-
const isClient = useIsClient();
|
|
1705
1705
|
if (!isClient) {
|
|
1706
1706
|
return null;
|
|
1707
1707
|
}
|
|
@@ -1882,7 +1882,7 @@ function useColumnDefinitions(data, props) {
|
|
|
1882
1882
|
renderFormItem: (_, { defaultRender }) => {
|
|
1883
1883
|
return defaultRender(_);
|
|
1884
1884
|
},
|
|
1885
|
-
render: (
|
|
1885
|
+
render: (_value, record, _rowIndex) => {
|
|
1886
1886
|
return renderValue(record, cconfig);
|
|
1887
1887
|
}
|
|
1888
1888
|
};
|