Skip to content

Commit

Permalink
fix(app): Changing dashboard resulting in some card shown as needs co…
Browse files Browse the repository at this point in the history
…nfiguration
  • Loading branch information
AleksandarDev committed Dec 23, 2023
1 parent 4071e1e commit 27a6dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/apps/app/components/dashboards/DashboardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function DashboardView(props: { dashboard: IDashboardModel, isEditing: boolean,
<GridWrapper isEditing={isEditing} order={widgetsOrder} orderChanged={handleOrderChanged}>
{widgets.map((widget) => (
<WidgetComponent
key={`widget-${widget.id.toString()}`}
key={`widget-${dashboard.id}-${widget.id.toString()}`}
id={widget.id}
onRemove={() => handleRemoveWidget(widget.id)}
isEditMode={isEditing}
Expand Down
4 changes: 1 addition & 3 deletions web/apps/app/components/widgets/parts/WidgetCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type CardConfig = {
rows?: number;
}

function WidgetCard(props: IWidgetCardProps) {
export default function WidgetCard(props: IWidgetCardProps) {
const {
children,
isEditMode,
Expand Down Expand Up @@ -113,5 +113,3 @@ function WidgetCard(props: IWidgetCardProps) {
</>
);
}

export default WidgetCard;

0 comments on commit 27a6dc7

Please sign in to comment.