-
Notifications
You must be signed in to change notification settings - Fork 179
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
Remove fontWeight
and backgroundOverlay
from element properties
#12511
Conversation
function updateElement(element: UnionElementV43): UnionElementV44 { | ||
if ('fontWeight' in element) { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Removes lingering properties that came from the templates but don't exist on the type. | ||
// @ts-ignore -- Ignore fontWeight not existing on element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if there's an alternative to just ignoring the type error here -- the error is correct, the type does not include these props anymore, however, since we still got them from the templates somehow, then these do exist in some cases.
Size Change: +32 B (0%) Total Size: 2.72 MB
ℹ️ View Unchanged
|
Plugin builds for 5266301 are ready 🛎️!
|
Context
Summary
Removes
fontWeight
andbackgroundOverlay
from the element properties. These have been removed before in migrations as well, however, looks like were added again via templates.Relevant Technical Choices
To-do
User-facing changes
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
Does this PR change what data or activity we track or use?
Does this PR have a legal-related impact?
Checklist
Type: XYZ
label to the PRFixes #12258