Fix boardcard selected state and fix table new row being added on top

This commit is contained in:
Charles Bochet
2023-08-13 10:49:28 -07:00
parent e6b20b5ff2
commit 5fdd8e0793
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const StyledBoardCard = styled.div<{ selected: boolean }>`
cursor: pointer;
.checkbox-container {
opacity: 0;
opacity: ${({ selected }) => (selected ? 1 : 0)};
}
&:hover .checkbox-container {

View File

@ -10,7 +10,7 @@ export function useUpsertTableRowId() {
.getLoadable(tableRowIdsState)
.valueOrThrow();
set(tableRowIdsState, Array.from(new Set([...currentRowIds, rowId])));
set(tableRowIdsState, Array.from(new Set([rowId, ...currentRowIds])));
},
[],
);