add comm coor report w/ download and copy abilities
This commit is contained in:
@@ -26,7 +26,7 @@ export default function useWidgetApi(endpoint) {
|
||||
}
|
||||
|
||||
const json = await response.json();
|
||||
const responseData = Array.isArray(json) ? json : json.data;
|
||||
const responseData = Array.isArray(json) ? json : (json?.data ?? json);
|
||||
setData(responseData || []);
|
||||
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user