fix: correct cluster ID when retrieving TopN view (#105)
This commit is contained in:
parent
983bbafe97
commit
c282f8b3f4
|
@ -63,7 +63,8 @@ export default (props) => {
|
||||||
const fetchFields = async (clusterID, viewID, type, isAgent) => {
|
const fetchFields = async (clusterID, viewID, type, isAgent) => {
|
||||||
if (!clusterID || !viewID) return;
|
if (!clusterID || !viewID) return;
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
const res = await request(`/elasticsearch/${clusterID}/saved_objects/_bulk_get`, {
|
const systemClusterID = "infini_default_system_cluster";
|
||||||
|
const res = await request(`/elasticsearch/${systemClusterID}/saved_objects/_bulk_get`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: [{
|
body: [{
|
||||||
id: viewID,
|
id: viewID,
|
||||||
|
|
Loading…
Reference in New Issue