Skip to content

Commit

Permalink
fix: case-insensitive autocomplete comparison (#529)
Browse files Browse the repository at this point in the history
fix: show isResizable setting on app item only
  • Loading branch information
spaenleh authored Jan 16, 2023
1 parent 80795c9 commit 2f496bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/item/form/AppForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const AppForm: FC<Props> = ({ onChange, item, updatedProperties = {} }) => {
}}
filterOptions={(options, state) => {
const filteredOptionsByName = options.filter((opt: RecordOf<App>) =>
opt.name.includes(state.inputValue),
opt.name.toLowerCase().includes(state.inputValue.toLowerCase()),
);
return filteredOptionsByName;
}}
Expand Down
3 changes: 1 addition & 2 deletions src/components/item/settings/ItemSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ const ItemSettings: FC<Props> = ({ item }) => {
{renderPinSetting()}
{renderChatSetting()}
{renderCollapseSetting()}
{/* todo: change itemType to app */}
{item.type === ItemType.FOLDER && renderResizeSetting()}
{item.type === ItemType.APP && renderResizeSetting()}
</FormGroup>
{item.type === ItemType.LINK && <LinkSettings item={item} />}
<ThumbnailSetting item={item} />
Expand Down

0 comments on commit 2f496bb

Please sign in to comment.