added error user feedback to grouptree, removed console logs

This commit is contained in:
Sina Blattmann 2023-07-20 17:37:14 +02:00
parent 1cb78f7a05
commit ac8a2e6489
7 changed files with 3 additions and 10 deletions

View File

@ -42,7 +42,6 @@ const App = () => {
if (token && getCurrentUser()?.mustResetPassword) {
return <ResetPassword />;
}
console.log("lang", language);
return (
<BrowserRouter>
<IntlProvider

View File

@ -55,7 +55,6 @@ const S3CredentialsContextProvider = ({
}
})
.catch((e) => {
console.log("catch", e);
return Promise.resolve(FetchResult.tryLater);
});
}

View File

@ -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%" }}>

View File

@ -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;
};

View File

@ -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();

View File

@ -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
? [

View File

@ -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)