Disabling widthControl gives error

Created on 22 November 2022, almost 2 years ago
Updated 25 January 2023, over 1 year ago

Problem/Motivation

Hi, thanks for this module!

I noticed that the module works fine if the widthcontrol setting is on, but that it fails if you turn it off. The editor shows a message that the block has an error and cannot be previewed, and the console reports:

react-dom.min.js?v=16.8.4:formatted:4299 TypeError: Cannot read properties of undefined (reading 'includes')
    at DrupalContentEmbed.render (drupal-content-embed.js?rlqrvz:314:26)

Steps to reproduce

Turn off setting for widthcontrol on a content type / view mode

Proposed resolution

We need an additional check, PR coming.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇴Norway vegardjo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024