Skip to content

🎥 Make videos programmatically with React

`@remotion/studio-server`: Simplify Element library validation

Igor Samokhovets6871976a1e41
diff --git a/packages/studio-server/src/preview-server/routes/update-config.ts b/packages/studio-server/src/preview-server/routes/update-config.ts
index 54b51ae6d3..2f47e01adc 100644
--- a/packages/studio-server/src/preview-server/routes/update-config.ts
+++ b/packages/studio-server/src/preview-server/routes/update-config.ts
@@ -78,9 +78,7 @@ const validateUpdates = (updates: unknown): string | null => {
!('value' in update) ||
typeof update.value !== 'object' ||
update.value === null ||
- Array.isArray(update.value) ||
- (Object.getPrototypeOf(update.value) !== Object.prototype &&
- Object.getPrototypeOf(update.value) !== null)
+ Array.isArray(update.value)
) {
return 'Config.addElementLibrary() expects an object value.';
}