integrations
This commit is contained in:
parent
43910b3cc7
commit
79958e6986
@ -357,7 +357,7 @@ export function cleanServiceGroups(groups) {
|
||||
method, // openmediavault widget
|
||||
mappings, // customapi widget
|
||||
refreshInterval,
|
||||
integration, // calendar widget
|
||||
integrations, // calendar widget
|
||||
} = cleanedService.widget;
|
||||
|
||||
let fieldsList = fields;
|
||||
@ -442,7 +442,7 @@ export function cleanServiceGroups(groups) {
|
||||
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
||||
}
|
||||
if (type === "calendar") {
|
||||
if (integration) cleanedService.widget.integration = integration;
|
||||
if (integrations) cleanedService.widget.integrations = integrations;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -25,10 +25,10 @@ export default function Component({ service }) {
|
||||
}, [showDate]);
|
||||
|
||||
// Load active integrations
|
||||
const integrations = useMemo(() => widget.integration?.map(integration => ({
|
||||
const integrations = useMemo(() => widget.integrations?.map(integration => ({
|
||||
service: dynamic(() => import(`./integrations/${integration?.type}`)),
|
||||
widget: integration,
|
||||
})) ?? [], [widget.integration]);
|
||||
})) ?? [], [widget.integrations]);
|
||||
|
||||
return <Container service={service}>
|
||||
<div className="flex flex-col">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user