Fix: omada widget broken in v0.9.1 (#3587)

pull/3590/head
shamoon 6 months ago committed by GitHub
parent 9803ef70c6
commit 15cc1d98c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,7 +9,7 @@ export default function Component({ service }) {
const { widget } = service; const { widget } = service;
const { data: omadaData, error: omadaAPIError } = useWidgetAPI(widget, { const { data: omadaData, error: omadaAPIError } = useWidgetAPI(widget, "info", {
refreshInterval: 5000, refreshInterval: 5000,
}); });

@ -2,6 +2,12 @@ import omadaProxyHandler from "./proxy";
const widget = { const widget = {
proxyHandler: omadaProxyHandler, proxyHandler: omadaProxyHandler,
mappings: {
info: {
endpoint: "api/info",
},
},
}; };
export default widget; export default widget;

Loading…
Cancel
Save