"Block factory" Cookbook recipe throws function error

Hi there,

I am using the code snippet for card type blocks from the cookbook recipe “Block factory: Creating your own block collection”.
After updatign to Kirby 3.9.4 I am receiving this error message in the panel:
page.content.text.replace is not a function

Anybody an idea how to fix this issue?

I cannot reproduce the issue. Did you delete the media folder after updating?

My bad:
the card block was quering a page where the text field was empty. this throws the error.

@pixelijn thanks for your support though!