Skip to content

Commit

Permalink
fix location filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
axgu committed Apr 20, 2024
1 parent c9025b2 commit cb77970
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/manage/items/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Color,
ItemInteraction,
Location,
RetrieveLocation,
Value
} from '@prisma/client';
import MyListbox from 'components/Form/Listbox';
Expand Down Expand Up @@ -209,8 +208,8 @@ const CreateItem: NextPageWithLayout = () => {
</span>
</label>
<MyListbox
values={Object.values(RetrieveLocation)}
displayValue={(prop) => RetrieveLocation[prop]}
values={Object.values(Location)}
displayValue={(prop) => Location[prop]}
keyValue={(prop) => prop}
name="retrieveLocation"
control={methods.control}
Expand Down

0 comments on commit cb77970

Please sign in to comment.