Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix(widget): set-options from widget components should be partial (#1882)

Meier Lukase695fb64d317
diff --git a/apps/nextjs/src/components/board/items/item-content.tsx b/apps/nextjs/src/components/board/items/item-content.tsx
index b8aff4fb2..db9323c66 100644
--- a/apps/nextjs/src/components/board/items/item-content.tsx
+++ b/apps/nextjs/src/components/board/items/item-content.tsx
@@ -88,7 +88,14 @@ const InnerContent = ({ item, ...dimensions }: InnerContentProps) => {
isEditMode={isEditMode}
boardId={board.id}
itemId={item.id}
- setOptions={updateOptions}
+ setOptions={(partialNewOptions) =>
+ updateOptions({
+ newOptions: {
+ ...partialNewOptions.newOptions,
+ ...options,
+ },
+ })
+ }
{...dimensions}
/>
</ErrorBoundary>