Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

style(dashboard): apply package prettier to the infra-config form changes

Yudhi Armyndharis2664683ecc76
diff --git a/dashboard/src/hooks/useInfraConfigForm.ts b/dashboard/src/hooks/useInfraConfigForm.ts
index f595ca663..407797a26 100644
--- a/dashboard/src/hooks/useInfraConfigForm.ts
+++ b/dashboard/src/hooks/useInfraConfigForm.ts
@@ -267,7 +267,8 @@ export function useInfraConfigForm(
// not at seed time: the two queries settle independently and the save click always sees the
// latest /status. An operator click (engineTouched) is a deliberate choice and always sends.
engine:
- engineTypeKnown() && !(engineHydrated.current && !engineTouched.current && infraStatus?.envPinned?.includes('ENGINE_TYPE'))
+ engineTypeKnown() &&
+ !(engineHydrated.current && !engineTouched.current && infraStatus?.envPinned?.includes('ENGINE_TYPE'))
? { ...engineConfig }
: { ...engineConfig, type: undefined },
});
diff --git a/dashboard/src/pages/Infrastructure.test.ts b/dashboard/src/pages/Infrastructure.test.ts
index 72da8a8fa..a8891a660 100644
--- a/dashboard/src/pages/Infrastructure.test.ts
+++ b/dashboard/src/pages/Infrastructure.test.ts
@@ -419,7 +419,11 @@ test('the engine radio seeds from the effective engine when ENGINE_TYPE is pinne
await awaitConfigHydrated(container);
await waitFor(() =>
- assert.equal(engineRadios(container)[0].checked, true, 'expected the pinned engine (whatsapp-web.js) to be selected'),
+ assert.equal(
+ engineRadios(container)[0].checked,
+ true,
+ 'expected the pinned engine (whatsapp-web.js) to be selected',
+ ),
);
assert.ok(
screen.getByText(/Pinned by the environment variable ENGINE_TYPE/, { exact: false }),