Skip to content

🎥 Make videos programmatically with React

removed logs and unused variables

Patric Salvisberg0572138344a1
diff --git a/packages/cli/src/editor/components/RenderModal/DataEditor.tsx b/packages/cli/src/editor/components/RenderModal/DataEditor.tsx
index e32d126fc3..29b37d1844 100644
--- a/packages/cli/src/editor/components/RenderModal/DataEditor.tsx
+++ b/packages/cli/src/editor/components/RenderModal/DataEditor.tsx
@@ -125,7 +125,6 @@ export const DataEditor: React.FC<{
propsEditType,
}) => {
const [mode, setMode] = useState<Mode>('schema');
- const [valBeforeSafe, setValBeforeSafe] = useState<unknown>(inputProps);
const [saving, setSaving] = useState(false);
const [showWarning, setShowWarningWithoutPersistance] = useState<boolean>(
() => getPersistedShowWarningState()
@@ -281,7 +280,6 @@ export const DataEditor: React.FC<{
return;
}
- setValBeforeSafe(inputProps);
updateDefaultProps(
unresolvedComposition.id,
inputProps,
@@ -440,7 +438,6 @@ export const DataEditor: React.FC<{
value={inputProps ?? {}}
setValue={setInputProps}
onSave={onUpdate}
- valBeforeSafe={valBeforeSafe}
showSaveButton={showSaveButton}
serializedJSON={serializedJSON}
defaultProps={unresolvedComposition.defaultProps}
diff --git a/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx b/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx
index ba5849a3a7..feb6b459be 100644
--- a/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx
+++ b/packages/cli/src/editor/components/RenderModal/RenderModalJSONPropsEditor.tsx
@@ -40,7 +40,6 @@ export const RenderModalJSONPropsEditor: React.FC<{
value: unknown;
setValue: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
onSave: () => void;
- valBeforeSafe: unknown;
showSaveButton: boolean;
serializedJSON: SerializedJSONWithCustomFields | null;
defaultProps: Record<string, unknown>;
@@ -50,7 +49,6 @@ export const RenderModalJSONPropsEditor: React.FC<{
value,
defaultProps,
onSave,
- valBeforeSafe,
showSaveButton,
serializedJSON,
schema,
@@ -60,7 +58,6 @@ export const RenderModalJSONPropsEditor: React.FC<{
}
const keybindings = useKeybinding();
- console.log(showSaveButton);
const [localValue, setLocalValue] = React.useState<State>(() => {
return parseJSON(serializedJSON.serializedString, schema);
});