Skip to content

Commit

Permalink
fix: hide new model dialog when chat started
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Nov 3, 2024
1 parent a64ad58 commit 6010979
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/chat-interface/model-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,15 @@ export default function ModelSelector(props: ModelSelectorProps) {
))}
</SelectContent>
</Select>
<div className="absolute top-full -left-10 pt-2 w-max min-w-full">
<AlertNewModelSelectorFeature
showAlert={showAlert}
setShowAlert={setShowAlert}
chatStarted={props.chatStarted}
/>
</div>
{!props.chatStarted && (
<div className="absolute top-full -left-10 pt-2 w-max min-w-full">
<AlertNewModelSelectorFeature
showAlert={showAlert}
setShowAlert={setShowAlert}
chatStarted={props.chatStarted}
/>
</div>
)}
</div>
);
}

0 comments on commit 6010979

Please sign in to comment.