Skip to content

Edit button errors out when sidebar folder selected #40

Open
@ajmeese7

Description

@ajmeese7

main folder selected

If I were to click the edit button right now, the console errors out with Cannot read properties of undefined (reading 'path').

There are several different avenues of approach that we could use for this, so I wanted to open this issue to discuss it before I just picked one. Here are a few possible routes, I'm sure there are more that I am forgetting:

  1. Disable the edit button if only a sidebar item is selected
  2. Have a fallback for if the object is undefined, and try to get the mountpoint reference (i.e. home:/) from the sidebar. This would ideally treat the sidebar items as normal directories

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions