Fix ESLint issues

This commit is contained in:
2025-05-15 19:42:38 +02:00
parent 0f6447155b
commit 7b6072c660
3 changed files with 9 additions and 9 deletions

View File

@ -138,7 +138,7 @@ function InboxTable(p: {
const [attaching, setAttaching] = React.useState<InboxEntry | undefined>();
// Request to attach entry to movement
const handleAttachClick = async (entry: InboxEntry) => {
const handleAttachClick = (entry: InboxEntry) => {
setAttaching(entry);
};
@ -295,12 +295,12 @@ function InboxTable(p: {
// Update movement
MovementApi.Update({
...movement,
file_id: entry?.file_id,
file_id: entry.file_id,
}),
// Update inbox entries
InboxApi.Update({
...entry!,
...entry,
movement_id: movement.id,
}),
]);
@ -437,7 +437,7 @@ function InboxTable(p: {
icon={<SearchIcon />}
label="Attach entry to movement"
color="inherit"
onClick={() => handleAttachClick(params.row)}
onClick={() => { handleAttachClick(params.row); }}
disabled={!!params.row.movement_id}
/>
</Tooltip>,