import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps } = $props();
+ let { ref = $bindable(null), class: className = undefined, children, ...restProps } = $props();
diff --git a/frontend/src/lib/components/ui/dialog/dialog-footer.svelte b/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
index b2d4035e..45460648 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
@@ -2,7 +2,7 @@
import { cn } from "$lib/utils.js";
let {
ref = $bindable(null),
- class: className,
+ class: className = undefined,
children,
...restProps
} = $props();
diff --git a/frontend/src/lib/components/ui/dialog/dialog-header.svelte b/frontend/src/lib/components/ui/dialog/dialog-header.svelte
index 2d4d36eb..163eb208 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-header.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-header.svelte
@@ -3,7 +3,7 @@
let {
ref = $bindable(null),
- class: className,
+ class: className = undefined,
children,
...restProps
} = $props();
diff --git a/frontend/src/lib/components/ui/dialog/dialog-title.svelte b/frontend/src/lib/components/ui/dialog/dialog-title.svelte
index 95a17ba6..fb139001 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-title.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-title.svelte
@@ -4,7 +4,7 @@
let {
ref = $bindable(null),
- class: className,
+ class: className = undefined,
...restProps
} = $props();
diff --git a/frontend/src/lib/components/ui/kanban/KanbanBoard.svelte b/frontend/src/lib/components/ui/kanban/KanbanBoard.svelte
index 2a0d37e0..ff2aaf52 100644
--- a/frontend/src/lib/components/ui/kanban/KanbanBoard.svelte
+++ b/frontend/src/lib/components/ui/kanban/KanbanBoard.svelte
@@ -258,8 +258,7 @@
{#each activeMobileColumn.items as item (item.id)}
{#if CardComponent}
-
onCardClick(item)}
/>
diff --git a/frontend/src/lib/components/ui/kanban/KanbanColumn.svelte b/frontend/src/lib/components/ui/kanban/KanbanColumn.svelte
index 0d797e9c..363899a6 100644
--- a/frontend/src/lib/components/ui/kanban/KanbanColumn.svelte
+++ b/frontend/src/lib/components/ui/kanban/KanbanColumn.svelte
@@ -101,8 +101,7 @@
{#each column.items as item (item.id)}
{#if CardComponent}
- onCardClick(item)}
ondragstart={(e) => onCardDragStart(e, item)}
diff --git a/frontend/src/lib/components/ui/label/label.svelte b/frontend/src/lib/components/ui/label/label.svelte
index 43d63c28..2d84d942 100644
--- a/frontend/src/lib/components/ui/label/label.svelte
+++ b/frontend/src/lib/components/ui/label/label.svelte
@@ -2,7 +2,7 @@
import { Label as LabelPrimitive } from 'bits-ui';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, ...restProps } = $props();
+ let { ref = $bindable(null), class: className = undefined, ...restProps } = $props();
{
const formData = await request.formData();
+ const name = /** @type {string | null} */ (formData.get('name'));
const data = {
- name: formData.get('name'),
+ name,
color: formData.get('color') || 'blue',
description: formData.get('description') || ''
};
- if (!data.name?.trim()) {
+ if (!name?.trim()) {
return fail(400, { error: 'Tag name is required' });
}
@@ -47,13 +48,14 @@ export const actions = {
update: async ({ request, cookies }) => {
const formData = await request.formData();
const tagId = formData.get('tagId');
+ const name = /** @type {string | null} */ (formData.get('name'));
const data = {
- name: formData.get('name'),
+ name,
color: formData.get('color'),
description: formData.get('description') || ''
};
- if (!data.name?.trim()) {
+ if (!name?.trim()) {
return fail(400, { error: 'Tag name is required' });
}