diff --git a/src/core/features/h5p/classes/framework.ts b/src/core/features/h5p/classes/framework.ts index 0e488f4a7..f895b74bd 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'); }