Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: selecting all pages with advanced/detail search corrected #2282

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

headri
Copy link
Contributor

@headri headri commented Jan 14, 2025

this.state.currentSearchSelection is not set in detail / advanced search
image
therefore condition removed; the other condition is sufficient
closes https://github.com/ComPlat/chemotion/issues/217

@headri headri requested a review from PiTrem January 14, 2025 09:28
Copy link

LCOV of commit a34d787 during Continuous Integration #4309

Summary coverage rate:
  lines......: 66.8% (14413 of 21564 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@headri headri force-pushed the fix-export-from-search-result branch from a34d787 to 135a43b Compare January 14, 2025 10:13
@headri headri requested a review from JanCBrammer January 14, 2025 10:15
Copy link

LCOV of commit 135a43b during Continuous Integration #4310

Summary coverage rate:
  lines......: 66.8% (14412 of 21563 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Copy link
Collaborator

@JanCBrammer JanCBrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm recycling the feedback from

#2215 (review)

and

#2215 (comment)

♻️

@@ -191,7 +191,7 @@ class UIStore {
const { elements } = ElementStore.getState();

if (range === 'all') {
if (this.state.currentSearchSelection && elements[type + "s"].ids) {
if (elements[`${type}s`].ids) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.state.currentSearchSelection is not set in detail / advanced search
image
therefore condition removed; the other condition is sufficient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants