From c381e2ecb5dca2d21b24c48e32e96c8f296bc1f6 Mon Sep 17 00:00:00 2001 From: Sebastian Rettig Date: Tue, 21 Sep 2021 17:19:56 +0200 Subject: [PATCH] fix(h5p-webcomponents): contents not deleted from integration on merge --- packages/h5p-webcomponents/src/h5p-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/h5p-webcomponents/src/h5p-utils.ts b/packages/h5p-webcomponents/src/h5p-utils.ts index 9f91c6792..2d9966d3e 100644 --- a/packages/h5p-webcomponents/src/h5p-utils.ts +++ b/packages/h5p-webcomponents/src/h5p-utils.ts @@ -31,7 +31,7 @@ export function mergeH5PIntegration( const newIntegrationDup = { ...newIntegration }; // We don't merge content object information, as there might be issues with // this. - delete newIntegration.contents; + delete newIntegrationDup.contents; window.H5PIntegration = merge(window.H5PIntegration, newIntegrationDup); }