mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-20 20:35:43 +02:00
Dont request unless its a newt
This commit is contained in:
parent
e648307f0b
commit
c135b5e3cf
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ export function useDockerSocket(site: Site) {
|
|||
|
||||
const api = createApiClient(useEnvContext());
|
||||
|
||||
const { dockerSocketEnabled: isEnabled = true } = site || {};
|
||||
const { dockerSocketEnabled: rawIsEnabled = true, type: siteType } = site || {};
|
||||
const isEnabled = rawIsEnabled && siteType === "newt";
|
||||
const { isAvailable = false, socketPath } = dockerSocket || {};
|
||||
|
||||
const checkDockerSocket = useCallback(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue