diff --git a/src/layouts/rest-api/endpoint/playground/try/ReqSample.tsx b/src/layouts/rest-api/endpoint/playground/try/ReqSample.tsx index 4ff90a2de..648474c77 100644 --- a/src/layouts/rest-api/endpoint/playground/try/ReqSample.tsx +++ b/src/layouts/rest-api/endpoint/playground/try/ReqSample.tsx @@ -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;