Skip to content

No dashboard shown when PUBLIC_CHECK_VERSION_ON_GITHUB is not set #12

@Jbekker

Description

@Jbekker

When PUBLIC_CHECK_VERSION_ON_GITHUB is not set, an uncaught exception occurs in src\lib\helpers\env.ts. That prevents the dashboard from displaying at all.

Uncaught SyntaxError SyntaxError: "undefined" is not valid JSON
at envBool (d:\projects\alloctrl\src\lib\helpers\env.ts:3:24)
at select_block_type (d:\projects\alloctrl\src\routes+page.svelte:17:8)
at create_fragment (localhost꞉5173/src/routes/+page.svelte:142:29)

It could make sense to do something like this to prevent this scenario:
return Boolean( JSON.parse( value ?? false ));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions