Fix type mismatch TypeScript error

This commit is contained in:
Dmitry Lyzo 2022-02-18 23:19:39 +03:00
parent 8338bb550a
commit e30a252c8a
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ type SearchSuggestionsProps = {
parentId?: string;
}
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ serverId, parentId }: SearchSuggestionsProps) => {
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ serverId = window.ApiClient.serverId(), parentId }: SearchSuggestionsProps) => {
const [ suggestions, setSuggestions ] = useState([]);
useEffect(() => {