fix portainer offline containers count
This commit is contained in:
1 parent
6df52660f0
commit
7647d8eb4e
3 files changed
+11
-15
No files matched your search
@@ -25,7 +25,7 @@ export default function Portainer({ service }) {
|
||||
return await res.json();
|
||||
};
|
||||
|
||||
const { data: containersData, error: containersError } = useSWR(buildApiUrl(`docker/containers/json`), fetcher);
|
||||
const { data: containersData, error: containersError } = useSWR(buildApiUrl(`docker/containers/json?all=1`), fetcher);
|
||||
|
||||
if (containersError) {
|
||||
return <Widget error="Portainer API Error" />;
|
||||
|
||||
Reference in new issue
Block a user