Skip to content

RestoreFrontstageLayoutTool logging errors: Cannot read properties of undefined (reading 'widgets') #1509

@wilmaier

Description

@wilmaier

Describe the bug

The RestoreFrontstageLayoutTool is called from the Pineapple viewer when the Restore Defaults button is clicked in the User Settings dialog. This tool is generating 2 error logs to the DevOps Logs every time the button is clicked and results in a lot of noise.

In the last 45 days, 130 error messages were logged. This of course depends on user activity for the Restore Defaults button.

To Reproduce

  1. Open any iModel in Pineapple viewer
  2. Open User Settings dialog
  3. Click on User Interface tab
  4. Click on Restore Defaults button
  5. Open DevOps Logs
  6. Note 2 new logs entries were added

Expected Behavior

The call to RestoreFrontstageLayoutTool should not log any errors. This causes a lot of noise in the DevOps logs.

Screenshots

Image Image

Desktop (please complete the applicable information)

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions