-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix: pasting a component with image isn't working #37529
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- when copying a component that has image in it, and we try to paste it. Image URL appends `static_None`. Result in crash or image not found error. - In this commit we have fixed this scenario, copy paste is working for components containing images.
|
Copy-pasting is complicated by the combination of sources and destinations, e.g.:
This code has shifted around a bit since I last worked with it, so I'm not sure what the state of things is now. Ideally, we would have a canonical normal form for expressing the OLX and its assets, and we would translate based only on the destination. I'm not sure if that's the case. So my high level question is: Have you double checked the different copy/paste combinations to make sure your change here did not cause any regressions in those? |
|
Yes, and the commit which you say caused the issue was designed to fix:
So in addition to copy-paste, we need to ensure that this change has no regressions to "Add Library Content" (v2), which is a workflow that is related to copy-paste and has some things in common with it, but is different. |
|
@ormsbee I have tested all different scenarios. Copy paste has started working with these changes.
regarding your above statement, But yes copy paste has started working. |
- when copying a component that has image in it, and we try to paste it. Image URL appends `static_None`. Result in crash or image not found error. - In this commit we have fixed this scenario, copy paste is working for components containing images. --------- Co-authored-by: Muhammad Faraz Maqsood <faraz.maqsood@A006-01130.local>
When copying a component that has image in it, and we try to paste it. Image URL appends
static_None. Result in crash or image not found error.Before:
mfe.before.mov
before.mov
After:
mfe.after.mov
after.mov