Skip to content

Commit

Permalink
Make autocomplete always available
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshiokatsuneo committed Feb 12, 2025
1 parent ec2ca6f commit a5d3f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/pages/queries/hooks/useAutocompleteFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function calculateTokensCount(schema) {
}

export default function useAutocompleteFlags(schema) {
const isAvailable = useMemo(() => calculateTokensCount(schema) <= 5000, [schema]);
const isAvailable = true;
const [isEnabled, setIsEnabled] = useState(localOptions.get("liveAutocomplete", true));

const toggleAutocomplete = useCallback(state => {
Expand Down

0 comments on commit a5d3f2b

Please sign in to comment.