mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Revert "Fix: subdirectory deployment (#2205)"
This revers commit b8eda91005
This commit is contained in:
parent
9e3bc8e64f
commit
8ec488efbd
20 changed files with 41 additions and 42 deletions
|
@ -12,10 +12,10 @@ export default function Component({ service }) {
|
|||
const { widget } = service;
|
||||
|
||||
const { data: statusData, error: statusError } = useSWR(
|
||||
`api/docker/status/${widget.container}/${widget.server || ""}`,
|
||||
`/api/docker/status/${widget.container}/${widget.server || ""}`,
|
||||
);
|
||||
|
||||
const { data: statsData, error: statsError } = useSWR(`api/docker/stats/${widget.container}/${widget.server || ""}`);
|
||||
const { data: statsData, error: statsError } = useSWR(`/api/docker/stats/${widget.container}/${widget.server || ""}`);
|
||||
|
||||
if (statsError || statsData?.error || statusError || statusData?.error) {
|
||||
const finalError = statsError ?? statsData?.error ?? statusError ?? statusData?.error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue