Skip to content

Commit

Permalink
Update src/layouts/rest-api/endpoint/playground/try/ReqSample.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Cosmo Shin (신의하) <[email protected]>
  • Loading branch information
CirnoV and XiNiHa authored Apr 16, 2024
1 parent 7956f95 commit bfc3f4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layouts/rest-api/endpoint/playground/try/ReqSample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ function useClientInfo(
const clientInfo =
targetInfoSignal.value?.clients.find(
(client) => client.key === clientKeySignal.value,
) ||
) ??
targetInfoSignal.value?.clients.find(
(client) => client.key === targetInfoSignal.value?.default,
) ||
targetInfoSignal.value?.clients[0] ||
) ??
targetInfoSignal.value?.clients[0] ??
null;
if (clientInfo) {
clientKeySignal.value = clientInfo.key;
Expand Down

0 comments on commit bfc3f4f

Please sign in to comment.