Skip to content

Fix DataAmount.vue crash when dataSize is partially loaded #15

@rahul810050

Description

@rahul810050

Description

The dashboard crashes during initial render when DataAmount.vue accesses
nested properties of dataSize (e.g. questions.general) before Firestore
data has fully loaded.

Although dataSize exists, some nested fields may still be undefined,
resulting in runtime errors such as:

TypeError: Cannot read properties of undefined (reading 'general')

This happens frequently on first page load or slow network conditions.

Expected Behavior

The dashboard should render safely while data is loading, without throwing
runtime errors.

Actual Behavior

The application crashes when nested fields of dataSize are accessed
before they are available.

Suggested Fix

Guard all accesses to nested dataSize properties using computed properties
with safe default values.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions