mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 21:52: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 (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Spinner height="20vh" size="small" tip="Loading..." />
|
<Spinner height="20vh" size="small" tip="Loading..." />
|
||||||
|
@ -7,6 +7,7 @@ import AppActions from 'types/actions';
|
|||||||
import {
|
import {
|
||||||
UPDATE_ALL_FILTERS,
|
UPDATE_ALL_FILTERS,
|
||||||
UPDATE_TRACE_FILTER_LOADING,
|
UPDATE_TRACE_FILTER_LOADING,
|
||||||
|
UPDATE_TRACE_GRAPH_LOADING,
|
||||||
} from 'types/actions/trace';
|
} from 'types/actions/trace';
|
||||||
import { GlobalReducer } from 'types/reducer/globalTime';
|
import { GlobalReducer } from 'types/reducer/globalTime';
|
||||||
import { TraceFilterEnum, TraceReducer } from 'types/reducer/trace';
|
import { TraceFilterEnum, TraceReducer } from 'types/reducer/trace';
|
||||||
@ -183,6 +184,12 @@ export const GetInitialTraceFilter = (
|
|||||||
filterLoading: false,
|
filterLoading: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
dispatch({
|
||||||
|
type: UPDATE_TRACE_GRAPH_LOADING,
|
||||||
|
payload: {
|
||||||
|
loading: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
dispatch({
|
dispatch({
|
||||||
@ -191,6 +198,12 @@ export const GetInitialTraceFilter = (
|
|||||||
filterLoading: false,
|
filterLoading: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
dispatch({
|
||||||
|
type: UPDATE_TRACE_GRAPH_LOADING,
|
||||||
|
payload: {
|
||||||
|
loading: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user