Skip to content

Commit

Permalink
- checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Jun 18, 2024
1 parent e99ff64 commit 3a6a6e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -948,12 +948,10 @@ const DatasetMoleculeView = memo(
className={classNames(classes.container, dragDropEnabled ? classes.dragDropCursor : undefined)}
wrap="nowrap"
ref={node => {
if (dragDropEnabled) {
ref.current = node;
}
if (outsideRef) {
outsideRef(data.id, node);
}
ref.current = node;
}}
data-handler-id={dragDropEnabled ? handlerId : undefined}
style={{ opacity }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,12 +1178,18 @@ const ObservationCmpView = memo(
return (
<>
<Grid
ref={node => {
if (outsideRef) {
outsideRef(data.id, node);
}
ref.current = node;
}}
container
justifyContent="space-between"
direction="row"
className={classes.container}
wrap="nowrap"
ref={ref}
// ref={ref}
>
{/* Site number */}
<Grid item container justifyContent="space-between" direction="column" className={classes.site}>
Expand Down
2 changes: 1 addition & 1 deletion js/components/preview/molecule/useScrollToSelectedPose.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const useScrollToSelectedPose = (moleculesPerPage, setCurrentPage) => {
);

const containsAtLeastOne = (list, molsList) => {
for (const mol in molsList) {
for (const mol of molsList) {
if (list.includes(mol.id)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion js/reducers/tracking/trackingActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const findTrackAction = (action, state) => (dispatch, getState) => {
timestamp: Date.now(),
username: username,
object_type: objectType,
items: action.items,
items: [...action.items],
text: `All hits were selected`
};
}
Expand Down

0 comments on commit 3a6a6e2

Please sign in to comment.