@geo2france/api-dashboard 1.11.0 → 1.11.1
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.
|
@@ -37,8 +37,8 @@ export const DSL_Dataset = ({ children, id, provider: provider_input, type: prov
|
|
|
37
37
|
inner: { left: false, right: false },
|
|
38
38
|
}[join_type] ?? { left: false, right: false };
|
|
39
39
|
const otherData = allDatasets?.find((d) => d.id === props.dataset)?.data;
|
|
40
|
-
if (!otherData)
|
|
41
|
-
return undefined; //
|
|
40
|
+
if (!otherData || otherData.length < 1)
|
|
41
|
+
return undefined; // prevent arquero from crash on missed data
|
|
42
42
|
return from(data).join(from(otherData), props.joinKey, undefined, aq_join_option).objects();
|
|
43
43
|
};
|
|
44
44
|
return funct;
|
|
@@ -20,5 +20,5 @@ export const Debug = () => {
|
|
|
20
20
|
label: _jsxs("span", { children: [_jsx(DatasetBadgeStatus, { isError: dataset?.isError, isFetching: dataset?.isFetching }), " ", dataset.id, " ", " ", _jsxs(Text, { type: "secondary", children: [" ", dataset?.resource, " "] }), " ", _jsx(Badge, { color: token.colorInfo, overflowCount: 9999, count: dataset?.data?.length })] }),
|
|
21
21
|
children: _jsx(DataPreview, { dataset: dataset.id, pageSize: 3 })
|
|
22
22
|
}));
|
|
23
|
-
return (_jsxs(_Fragment, { children: [_jsx(FloatButton, { icon: _jsx(BugOutlined, {}), type: "primary", onClick: () => setIsModalOpen(true), style: { top: 5 }, className: "debugFloatButton" }),
|
|
23
|
+
return (_jsxs(_Fragment, { children: [_jsx(FloatButton, { icon: _jsx(BugOutlined, {}), type: "primary", onClick: () => setIsModalOpen(true), style: { top: 5 }, className: "debugFloatButton" }), _jsxs(Modal, { title: "Information concepteur", width: "90%", centered: true, styles: { content: { 'width': "100%", padding: 36 } }, closable: { 'aria-label': 'Custom Close Button' }, open: isModalOpen, onCancel: () => setIsModalOpen(false), footer: null, children: [_jsx(Title, { level: 5, children: "Jeux de donn\u00E9es " }), _jsx(Collapse, { accordion: true, items: items }), _jsx(Divider, {}), _jsx(Title, { level: 5, children: "Contr\u00F4les utilisateur " }), _jsx(ControlPreview, {}), _jsx(Divider, {}), _jsx(Title, { level: 5, children: "Palette " }), _jsx(PalettePreview, {})] })] }));
|
|
24
24
|
};
|