fix: correct cluster ID when retrieving TopN view (#105)

This commit is contained in:
silenceqi 2025-01-25 16:05:50 +08:00 committed by GitHub
parent 983bbafe97
commit c282f8b3f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ export default (props) => {
const fetchFields = async (clusterID, viewID, type, isAgent) => {
if (!clusterID || !viewID) return;
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',
body: [{
id: viewID,