mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor: arrow functions in svelte components
fix: should provide arrow function to , oops! Signed-off-by: izzy <me@insrt.uk>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
const { Download, Delete } = $derived(getIntegrityReportItemActions($t, id, reportType));
|
||||
|
||||
function onIntegrityReportDeleteStatus({
|
||||
const onIntegrityReportDeleteStatus = ({
|
||||
id: reportId,
|
||||
type,
|
||||
isDeleting,
|
||||
@@ -24,11 +24,11 @@
|
||||
id?: string;
|
||||
type?: IntegrityReportType;
|
||||
isDeleting: boolean;
|
||||
}) {
|
||||
}) => {
|
||||
if (type === reportType || reportId === id) {
|
||||
deleting = isDeleting;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<OnEvents {onIntegrityReportDeleteStatus} />
|
||||
|
||||
Reference in New Issue
Block a user