We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6ab9ba commit 44c9a8aCopy full SHA for 44c9a8a
src/utils/manage.ts
@@ -32,7 +32,7 @@ async function fetchLocalStackSessionId(): Promise<string> {
32
if (response.ok) {
33
const json = await response.json();
34
if (typeof json === "object" && json !== null && "session_id" in json) {
35
- return (json as { session_id?: string }).session_id ?? "";
+ return typeof json.session_id === "string" ? json.session_id : "";
36
}
37
38
} catch {
0 commit comments