feat: Add checkbox for sightbar
entity + fix build errors
This commit is contained in:
@ -121,7 +121,7 @@ export const DevicesTable = observer(() => {
|
||||
// Transform the raw devices data into rows suitable for the table
|
||||
// This will also filter out devices without a UUID, as those cannot be acted upon.
|
||||
const currentTableRows = transformDevicesToRows(
|
||||
vehicles as Vehicle[]
|
||||
vehicles.data as Vehicle[]
|
||||
// devices as ConnectedDevice[]
|
||||
);
|
||||
|
||||
|
@ -35,7 +35,7 @@ export const SightsTable = observer(() => {
|
||||
useEffect(() => {
|
||||
const fetchData = async () => {
|
||||
await getSights();
|
||||
await getCities();
|
||||
await getCities(language);
|
||||
};
|
||||
fetchData();
|
||||
}, [language, getSights, getCities]);
|
||||
@ -67,7 +67,7 @@ export const SightsTable = observer(() => {
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{rows(sights, cities)?.map((row) => (
|
||||
{rows(sights, cities[language])?.map((row) => (
|
||||
<TableRow
|
||||
key={row?.id}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
|
Reference in New Issue
Block a user