Closed ikesau closed 1 month ago
The research and writing block had an incorrectly implemented fallback for when linked documents were invalid.
If there's an error and we're previewing, we show a red warning block. If we're not previewing (i.e. baking), we should return null.
This was noticed because an unpublished gdoc that was being linked to in the CO₂ topic page was showing up as an empty tile.
Login: ssh owid@staging-site-research-and-writing-component-error-rendering
ssh owid@staging-site-research-and-writing-component-error-rendering
Edited: 2024-05-15 18:47:09 UTC Execution time: 1.17 seconds
The research and writing block had an incorrectly implemented fallback for when linked documents were invalid.
If there's an error and we're previewing, we show a red warning block. If we're not previewing (i.e. baking), we should return null.
This was noticed because an unpublished gdoc that was being linked to in the CO₂ topic page was showing up as an empty tile.