feat: Add checkbox for sightbar entity + fix build errors

This commit is contained in:
2025-06-09 18:48:25 +03:00
parent 2ca1f2cba4
commit e2e750877a
25 changed files with 302 additions and 269 deletions

View File

@ -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[]
);

View File

@ -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 } }}