mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 17:56:38 +00:00
Dont request unless its a newt
This commit is contained in:
@@ -21,7 +21,8 @@ export function useDockerSocket(site: Site) {
|
|||||||
|
|
||||||
const api = createApiClient(useEnvContext());
|
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 { isAvailable = false, socketPath } = dockerSocket || {};
|
||||||
|
|
||||||
const checkDockerSocket = useCallback(async () => {
|
const checkDockerSocket = useCallback(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user