Skip to content

Commit

Permalink
Fix: omada widget broken in v0.9.1 (gethomepage#3587)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Jun 4, 2024
1 parent 9803ef7 commit 15cc1d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/omada/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Component({ service }) {

const { widget } = service;

const { data: omadaData, error: omadaAPIError } = useWidgetAPI(widget, {
const { data: omadaData, error: omadaAPIError } = useWidgetAPI(widget, "info", {
refreshInterval: 5000,
});

Expand Down
6 changes: 6 additions & 0 deletions src/widgets/omada/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import omadaProxyHandler from "./proxy";

const widget = {
proxyHandler: omadaProxyHandler,

mappings: {
info: {
endpoint: "api/info",
},
},
};

export default widget;

0 comments on commit 15cc1d9

Please sign in to comment.