Skip to content

Fix console warning from assignee sidebar

Simon Knox requested to merge psimyn-master-patch-90389 into master

What does this MR do and why?

Prevent this console error for non-logged in users (or anyone without access):

 webpack-internal:///q+nE 4641:20 "[Vue warn]: Invalid prop: type check failed for prop "editable". Expected Boolean, got Null

found in
---> SidebarAssigneesWidget> at sidebar/components/assignees/sidebar_assignees_widget.vue

This helper is used in sidebar template thenJSON.parsed here, which results in editable being null

How to test

  1. Create issue in a public project
  2. Load as non-logged in user
  3. Check JS console for errors
Edited by Simon Knox

Merge request reports

Loading