Skip to content

Commit

Permalink
Merge pull request #31 from socialappslab/feat/no-ticket/session-country
Browse files Browse the repository at this point in the history
(fix): Fix typing
  • Loading branch information
zant authored Aug 8, 2024
2 parents a34295e + aca147d commit 0d7f1ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/list/CityList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
import Button from '@/themed/button/Button';
import { City } from '@/schemas';
import { BaseObject, City } from '@/schemas';
import CreateCityDialog from '@/pages/admin/CreateCityDialog';
import { HeadCell } from '../../themed/table/DataTable';
import FilteredDataTable from './FilteredDataTable';
Expand Down Expand Up @@ -80,7 +80,7 @@ export default function RoleList() {
<CreateCityDialog handleClose={handleClose} updateTable={updateTable} />
</Dialog>
<RoleDataTable
endpoint={`admin/countries/${user.country.id}/states/${user.state.id}/cities`}
endpoint={`admin/countries/${(user.country as BaseObject).id}/states/${user.state.id}/cities`}
defaultFilter="name"
headCells={headCells}
title={t('menu.cities')}
Expand Down

0 comments on commit 0d7f1ab

Please sign in to comment.