datajunction-ui 0.0.1-a43.dev0 → 0.0.1-a44.dev0
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
|
@@ -61,7 +61,7 @@ export const DimensionsSelect = ({ cube }) => {
|
|
|
61
61
|
|
|
62
62
|
// Set the selected cube dimensions if an existing cube is being edited
|
|
63
63
|
if (cube) {
|
|
64
|
-
const currentSelectedDimensionsByGroup =
|
|
64
|
+
const currentSelectedDimensionsByGroup = {};
|
|
65
65
|
grouped.forEach(grouping => {
|
|
66
66
|
const dimensionsInGroup = grouping[1];
|
|
67
67
|
currentSelectedDimensionsByGroup[dimensionsInGroup[0].node_name] =
|
|
@@ -149,15 +149,13 @@ export function CubeBuilderPage() {
|
|
|
149
149
|
useEffect(() => {
|
|
150
150
|
const fetchData = async () => {
|
|
151
151
|
if (name) {
|
|
152
|
-
const node = await djClient.node(name);
|
|
153
152
|
const cube = await djClient.cube(name);
|
|
154
|
-
cube.tags = node.tags;
|
|
155
|
-
setNode(cube);
|
|
156
153
|
updateFieldsWithNodeData(cube, setFieldValue);
|
|
154
|
+
setNode(cube);
|
|
157
155
|
}
|
|
158
156
|
};
|
|
159
157
|
fetchData().catch(console.error);
|
|
160
|
-
}, [
|
|
158
|
+
}, [setFieldValue]);
|
|
161
159
|
|
|
162
160
|
return (
|
|
163
161
|
<Form>
|