[bug][console] Recurring console errors on editor load: SVG calc() width/height + share-for-page query returns undefined #132
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: low (console hygiene / latent rendering bug)
Two errors fire on essentially every editor page load:
<svg> attribute width: Expected length, "calc(1.125rem * …)"(and matchingheight). Some icon component passes a CSScalc()string into the raw SVGwidth/heightattributes, which only accept lengths — the browser rejects them. Icons still display, but it is persistent console spam (fires when the slash menu / block icons render).Query data cannot be undefined … Affected query key: ["share-for-page", <pageId>]— theshare-for-pageReact Query function returnsundefined(instead ofnull) when the page is not shared, which React Query warns about on every load.Suggested fix: pass numeric/length SVG sizes (or move sizing to CSS), and return
nullfrom the share-for-page query function when there is no share.Filed from an automated full-product QA pass on
develop@v0.93.0-64-gb60190ff, fresh DB. Items were observed live in the browser; grouped issues collect several small related findings.