diff --git a/src/core/features/h5p/classes/framework.ts b/src/core/features/h5p/classes/framework.ts index a3dd50c1a..f3d70b2bc 100644 --- a/src/core/features/h5p/classes/framework.ts +++ b/src/core/features/h5p/classes/framework.ts @@ -844,7 +844,7 @@ export class CoreH5PFramework { } // Create the relation. - if (typeof library.libraryId !== 'string') { + if (typeof library.libraryId !== 'number') { throw new CoreError('Attempted to create dependencies of library without id'); }