mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 22:42:04 +08:00
fix: error handling is updated in trace
This commit is contained in:
parent
53528f1045
commit
80c0b5621d
@ -34,7 +34,7 @@ function TraceGraph(): JSX.Element {
|
||||
);
|
||||
}
|
||||
|
||||
if (loading || payload === undefined) {
|
||||
if (loading) {
|
||||
return (
|
||||
<Container>
|
||||
<Spinner height="20vh" size="small" tip="Loading..." />
|
||||
|
@ -7,6 +7,7 @@ import AppActions from 'types/actions';
|
||||
import {
|
||||
UPDATE_ALL_FILTERS,
|
||||
UPDATE_TRACE_FILTER_LOADING,
|
||||
UPDATE_TRACE_GRAPH_LOADING,
|
||||
} from 'types/actions/trace';
|
||||
import { GlobalReducer } from 'types/reducer/globalTime';
|
||||
import { TraceFilterEnum, TraceReducer } from 'types/reducer/trace';
|
||||
@ -183,6 +184,12 @@ export const GetInitialTraceFilter = (
|
||||
filterLoading: false,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
type: UPDATE_TRACE_GRAPH_LOADING,
|
||||
payload: {
|
||||
loading: false,
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
dispatch({
|
||||
@ -191,6 +198,12 @@ export const GetInitialTraceFilter = (
|
||||
filterLoading: false,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
type: UPDATE_TRACE_GRAPH_LOADING,
|
||||
payload: {
|
||||
loading: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user