Fix ESLint issues
This commit is contained in:
@ -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>,
|
||||
|
Reference in New Issue
Block a user