[bug][console] Recurring console errors on editor load: SVG calc() width/height + share-for-page query returns undefined #132

Closed
opened 2026-06-22 06:27:56 +03:00 by Ghost · 0 comments

Severity: low (console hygiene / latent rendering bug)

Two errors fire on essentially every editor page load:

  1. <svg> attribute width: Expected length, "calc(1.125rem * …)" (and matching height). Some icon component passes a CSS calc() string into the raw SVG width/height attributes, 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).
  2. Query data cannot be undefined … Affected query key: ["share-for-page", <pageId>] — the share-for-page React Query function returns undefined (instead of null) 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 null from 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.

**Severity:** low (console hygiene / latent rendering bug) Two errors fire on essentially every editor page load: 1. `<svg> attribute width: Expected length, "calc(1.125rem * …)"` (and matching `height`). Some icon component passes a CSS `calc()` string into the raw SVG `width`/`height` attributes, 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). 2. `Query data cannot be undefined … Affected query key: ["share-for-page", <pageId>]` — the `share-for-page` React Query function returns `undefined` (instead of `null`) 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 `null` from 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._
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vvzvlad/gitmost#132