Skip to content

Commit

Permalink
add previewImage to combobox. this works only with the pull request i…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pfannkuchensack committed Aug 18, 2024
1 parent 584e071 commit f177248
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export const useGroupedModelCombobox = <T extends AnyModelConfig>(
options: val.map((model) => ({
label: model.name,
value: model.key,
previewImage: model.cover_image ? model.cover_image : undefined,
isDisabled: getIsDisabled ? getIsDisabled(model) : false,
withPreviewImage: true,
})),
});
return acc;
Expand Down

0 comments on commit f177248

Please sign in to comment.