Skip to content

Commit

Permalink
fix: only show model refresh button if there is no connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed Nov 11, 2024
1 parent aadbb55 commit cd27259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ModelRefreshButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Refresh from '~/icons/Refresh'
import { connectionStore } from '~/core/connection/ConnectionStore'

const ModelRefreshButton = observer(
({ small = false, shouldShow = true }: { small?: boolean; shouldShow?: boolean }) => {
({ small = false, shouldShow = false }: { small?: boolean; shouldShow?: boolean }) => {
const noServer = !connectionStore.isAnyServerConnected

return (
Expand Down

0 comments on commit cd27259

Please sign in to comment.