Skip to content

Commit

Permalink
disallow adding same property twice within recent
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Feb 8, 2025
1 parent 32bd01f commit 2c46cdc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,9 @@ export const Section = () => {
{ listed: true }
);
}
setRecentProperties([...recentProperties, property]);
setRecentProperties(
Array.from(new Set([...recentProperties, property]))
);
}}
onClose={() => setIsAdding(false)}
/>
Expand Down

0 comments on commit 2c46cdc

Please sign in to comment.