Merge remote-tracking branch 'parent/main' into upstream-20240229
This commit is contained in:
commit
4b5fc77b6e
59 changed files with 562 additions and 780 deletions
|
@ -80,7 +80,7 @@ export default class MediaContainer extends PureComponent {
|
|||
return (
|
||||
<IntlProvider>
|
||||
<>
|
||||
{[].map.call(components, (component, i) => {
|
||||
{Array.from(components).map((component, i) => {
|
||||
const componentName = component.getAttribute('data-component');
|
||||
const Component = MEDIA_COMPONENTS[componentName];
|
||||
const { media, card, poll, hashtag, ...props } = JSON.parse(component.getAttribute('data-props'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue