mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
e50b76571a
commit
f1597bd6da
@ -23,9 +23,7 @@ type UseModelComboboxReturn = {
|
|||||||
noOptionsMessage: () => string;
|
noOptionsMessage: () => string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const useModelCombobox = <T extends AnyModelConfig>(
|
export const useModelCombobox = <T extends AnyModelConfig>(arg: UseModelComboboxArg<T>): UseModelComboboxReturn => {
|
||||||
arg: UseModelComboboxArg<T>
|
|
||||||
): UseModelComboboxReturn => {
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { modelEntities, selectedModel, getIsDisabled, onChange, isLoading, optionsFilter = () => true } = arg;
|
const { modelEntities, selectedModel, getIsDisabled, onChange, isLoading, optionsFilter = () => true } = arg;
|
||||||
const options = useMemo<ComboboxOption[]>(() => {
|
const options = useMemo<ComboboxOption[]>(() => {
|
||||||
|
@ -5,7 +5,7 @@ import { api, buildV1Url, LIST_TAG } from '..';
|
|||||||
/**
|
/**
|
||||||
* Builds an endpoint URL for the workflows router
|
* Builds an endpoint URL for the workflows router
|
||||||
* @example
|
* @example
|
||||||
* buildWorkflowsUrl('some-path')
|
* buildWorkflowsUrl('some-path')
|
||||||
* // '/api/v1/workflows/some-path'
|
* // '/api/v1/workflows/some-path'
|
||||||
*/
|
*/
|
||||||
const buildWorkflowsUrl = (path: string = '') => buildV1Url(`workflows/${path}`);
|
const buildWorkflowsUrl = (path: string = '') => buildV1Url(`workflows/${path}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user