Browse Source

Remove defined type

satof3 7 months ago
parent
commit
59ec012cd9

+ 2 - 5
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/AiAssistantManagementEditInstruction.tsx

@@ -19,18 +19,15 @@ type Props = {
   instruction: string;
   onChange: (value: string) => void;
   onReset: () => void;
-  backToPageMode?: AiAssistantManagementModalPageMode;
 }
 
 export const AiAssistantManagementEditInstruction = (props: Props): JSX.Element => {
-  const {
-    instruction, onChange, onReset, backToPageMode = AiAssistantManagementModalPageMode.HOME,
-  } = props;
+  const { instruction, onChange, onReset } = props;
   const { t } = useTranslation();
   const { changePageMode } = useAiAssistantManagementModal();
 
   const handleComplete = () => {
-    changePageMode(backToPageMode);
+    changePageMode(AiAssistantManagementModalPageMode.HOME);
   };
 
   return (