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:
izzy
2026-02-12 11:43:17 +00:00
parent 4908289879
commit bf17d8cbd1
4 changed files with 13 additions and 12 deletions
@@ -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} />