Skip to content

Deleting an asset leaves a broken file reference in sketch files #4160

Description

@yugalkaushik

p5.js version

No response

What is your operating system?

Windows

Web browser and version

No response

Actual Behavior

When I delete an image or other asset from the Assets tab, it disappears from my assets list, but the filename still shows up in the sketch files sidebar. The file itself is gone, so the preview is broken.
Deleting the same file from the sketch files sidebar works correctly. The problem only happens when deleting from Assets.

Expected Behavior

Deleting an asset from the Assets tab should remove it from storage and from every sketch that references it, same as deleting it from sketch files.

Steps to reproduce

  1. Open a sketch and upload an image.
  2. Confirm the file appears in both the sketch files sidebar and the Assets tab.
  3. Go to the Assets tab and delete that asset.
  4. Open the sketch again and check the sketch files sidebar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviors

    Type

    No type

    Fields

    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