Run pre-commit
This commit is contained in:
parent
419397ab7a
commit
b607361a1f
@ -9,10 +9,7 @@ export default function Component({ service }) {
|
|||||||
|
|
||||||
const { widget } = service;
|
const { widget } = service;
|
||||||
|
|
||||||
const { data: downloadStatsData, error: downloadStatsError } = useWidgetAPI(
|
const { data: downloadStatsData, error: downloadStatsError } = useWidgetAPI(widget, "stats");
|
||||||
widget,
|
|
||||||
"stats",
|
|
||||||
);
|
|
||||||
|
|
||||||
if (downloadStatsError) {
|
if (downloadStatsError) {
|
||||||
return <Container service={service} error={downloadStatsError} />;
|
return <Container service={service} error={downloadStatsError} />;
|
||||||
|
|||||||
@ -5,7 +5,7 @@ const widget = {
|
|||||||
proxyHandler: genericProxyHandler,
|
proxyHandler: genericProxyHandler,
|
||||||
|
|
||||||
mappings: {
|
mappings: {
|
||||||
"stats": {
|
stats: {
|
||||||
endpoint: "DownloadStats/GetTotalDownloadStats",
|
endpoint: "DownloadStats/GetTotalDownloadStats",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user