Skip to content

Commit 4298a93

Browse files
committed
Fix default path being overridden by options spread
Swap the order of `path` and `...options` in the object literal so that the computed default path ("/.well-known/t3/environment") is not overridden when `options` contains a `path` key with value `undefined`.
1 parent 6c36109 commit 4298a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/desktop/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ async function waitForBackendHttpReady(
375375

376376
try {
377377
await waitForHttpReady(baseUrl, {
378-
path: options?.path ?? "/.well-known/t3/environment",
379378
...options,
379+
path: options?.path ?? "/.well-known/t3/environment",
380380
signal: controller.signal,
381381
});
382382
} finally {

0 commit comments

Comments
 (0)