When I was using dataframeview
to build data, I was prompted with the following question, what is the cause?
field.values.get is not a function
TypeError: field.values.get is not a function
at Object.getter [as server] (http://localhost:3000/static/js/bundle.js:644:41)
at collectMetricData (http://localhost:3000/static/js/bundle.js:186:107)
at mapPromMetricsToServiceMap (http://localhost:3000/static/js/bundle.js:160:3)
at http://localhost:3000/static/js/bundle.js:75:86
function getMetricFrames(responses: DataQueryResponse[]): Record<string, DataFrameView> {
return (responses[0]?.data || []).reduce<Record<string, DataFrameView>>((acc, frameDTO) => {
const frame = toDataFrame(frameDTO);
acc[frame.refId ?? 'A'] = new DataFrameView(frame);
return acc;
}, {});
}