Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not show empty brackets when no asset resource is selected #9186

Merged
merged 2 commits into from Oct 31, 2023

Conversation

aditya-mitra
Copy link
Collaborator

@aditya-mitra aditya-mitra commented Oct 31, 2023

Summary

馃 Generated by Copilot at d5f6ec0

Added debugging and error handling to AssetsPreviewPanel.tsx to fix a bug with missing asset previews.

References

closes #insert number here

Explanation

馃 Generated by Copilot at d5f6ec0

  • Added a console log and a conditional check to fix the preview panel bug (link)
  • Prevented rendering the asset name and size if they are undefined or null (link)

馃 Generated by Copilot at d5f6ec0

console.log helps
debug preview panel props
avoid null errors

QA Steps

Before

ffd3778ec176094a9e00da4b448ff3a1

406f0eb21163267330d72dfb436411ef

After

image

image

Checklist

  • If this PR is still a WIP, convert to a draft
  • When this PR is ready, mark it as "Ready for review"
  • ensure all checks pass
  • Changes have been manually QA'd
  • Changes reviewed by at least 2 approved reviewers

@barankyle barankyle added this pull request to the merge queue Oct 31, 2023
Merged via the queue into dev with commit 897fde3 Oct 31, 2023
13 checks passed
@barankyle barankyle deleted the fix/assets-preview-brackets branch October 31, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants