Merge pull request #2349 from automatisch/fix-errors-flow-folder
refactor: remove not used elements in FlowFolder
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Link, useParams } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import CircularProgress from '@mui/material/CircularProgress';
|
import CircularProgress from '@mui/material/CircularProgress';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import Typography from '@mui/material/Typography';
|
import Typography from '@mui/material/Typography';
|
||||||
@@ -11,7 +11,7 @@ export default function FlowFolder(props) {
|
|||||||
const { flowId } = props;
|
const { flowId } = props;
|
||||||
|
|
||||||
const formatMessage = useFormatMessage();
|
const formatMessage = useFormatMessage();
|
||||||
const { data: folder, isLoading, isError } = useFlowFolder(flowId);
|
const { data: folder, isLoading } = useFlowFolder(flowId);
|
||||||
|
|
||||||
const name = folder?.data?.name || formatMessage('flowFolder.uncategorized');
|
const name = folder?.data?.name || formatMessage('flowFolder.uncategorized');
|
||||||
const id = folder?.data?.id || 'null';
|
const id = folder?.data?.id || 'null';
|
||||||
@@ -22,7 +22,6 @@ export default function FlowFolder(props) {
|
|||||||
to={URLS.FOLDER_FLOWS(id)}
|
to={URLS.FOLDER_FLOWS(id)}
|
||||||
variant="body1"
|
variant="body1"
|
||||||
noWrap
|
noWrap
|
||||||
iconColor="action"
|
|
||||||
color="inherit"
|
color="inherit"
|
||||||
>
|
>
|
||||||
{!isLoading && name}
|
{!isLoading && name}
|
||||||
|
|||||||
Reference in New Issue
Block a user