added error user feedback to grouptree, removed console logs
This commit is contained in:
parent
1cb78f7a05
commit
ac8a2e6489
|
@ -42,7 +42,6 @@ const App = () => {
|
|||
if (token && getCurrentUser()?.mustResetPassword) {
|
||||
return <ResetPassword />;
|
||||
}
|
||||
console.log("lang", language);
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<IntlProvider
|
||||
|
|
|
@ -55,7 +55,6 @@ const S3CredentialsContextProvider = ({
|
|||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log("catch", e);
|
||||
return Promise.resolve(FetchResult.tryLater);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -22,8 +22,6 @@ const GroupTabs = () => {
|
|||
|
||||
const id = routeMatch?.params?.id;
|
||||
|
||||
console.log("fuck", routeMatch?.pattern?.path, currentType);
|
||||
|
||||
if (id) {
|
||||
return (
|
||||
<Box sx={{ width: "100%" }}>
|
||||
|
|
|
@ -58,7 +58,6 @@ const GroupTree = () => {
|
|||
</>
|
||||
}
|
||||
onClick={() => {
|
||||
console.log("fuck", element.type);
|
||||
setCurrentType(element.type);
|
||||
}}
|
||||
sx={{ ".MuiTreeItem-label": { display: "flex" } }}
|
||||
|
@ -77,6 +76,9 @@ const GroupTree = () => {
|
|||
</Grid>
|
||||
);
|
||||
}
|
||||
if (getError) {
|
||||
return <Alert severity="error">{getError.message} </Alert>;
|
||||
}
|
||||
if (data) {
|
||||
return (
|
||||
<TreeView
|
||||
|
@ -105,8 +107,6 @@ const GroupTree = () => {
|
|||
{renderTree(data)}
|
||||
</TreeView>
|
||||
);
|
||||
} else if (getError) {
|
||||
return <Alert severity="error">{getError.message} </Alert>;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
|
@ -67,7 +67,6 @@ const InstallationForm = (props: I_InstallationFormProps) => {
|
|||
handleSubmit(values, formikValues)
|
||||
.then(() => {
|
||||
setOpen(true);
|
||||
console.log(additionalButtons, "addbuttons");
|
||||
additionalButtons && additionalButtons.length > 0
|
||||
? fetchGroups()
|
||||
: fetchInstallations();
|
||||
|
|
|
@ -152,7 +152,6 @@ const ScalarGraph = () => {
|
|||
</LocalizationProvider>
|
||||
{visibleGraphs.map((path) => {
|
||||
const isScalar = isNumeric(coordinateTimeSeries[path].y[0]);
|
||||
console.log("graphdata", timeSeries, coordinateTimeSeries);
|
||||
|
||||
const data = isScalar
|
||||
? [
|
||||
|
|
|
@ -207,7 +207,6 @@ export interface I_CsvEntry {
|
|||
}
|
||||
|
||||
export const parseCsv = (text: string): DataRecord => {
|
||||
console.log("parseText", text);
|
||||
const y = text
|
||||
.split(/\r?\n/)
|
||||
.filter((split) => split.length > 0)
|
||||
|
|
Loading…
Reference in New Issue