Skip to content

🎥 Make videos programmatically with React

`@remotion/studio`: Hide annotation menu actions in read-only mode

Jonny Burgera713ab1c5801
diff --git a/packages/studio/src/components/get-annotate-with-chatgpt-menu-item.ts b/packages/studio/src/components/get-annotate-with-chatgpt-menu-item.ts
index 45095d52c8..c9b21a23ff 100644
--- a/packages/studio/src/components/get-annotate-with-chatgpt-menu-item.ts
+++ b/packages/studio/src/components/get-annotate-with-chatgpt-menu-item.ts
@@ -13,7 +13,7 @@ export const getAnnotateWithChatGPTMenuItems = ({
readonly initialComment: string | null;
readonly metadata: Record<string, string | number>;
}): ComboboxValue[] => {
- if (getCodexAnnotation() === null) {
+ if (window.remotion_isReadOnlyStudio || getCodexAnnotation() === null) {
return [];
}