Skip to content

Commit

Permalink
fix(widget): set-options from widget components should be partial (#1882
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Meierschlumpf authored Jan 10, 2025
1 parent 62da953 commit e695fb6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/nextjs/src/components/board/items/item-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e695fb6

Please sign in to comment.