[ARVADOS-WORKBENCH2] updated: 2.3.0-57-gf29a01e2

Git user git at public.arvados.org
Fri Dec 10 15:12:56 UTC 2021


Summary of changes:
 cypress/integration/project.spec.js          | 2 +-
 src/components/search-input/search-input.tsx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

       via  f29a01e226a8d1ae737fa10a63ccee4691d2bc8d (commit)
      from  8debd050f58035d7de063142ac239243a9d92a48 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f29a01e226a8d1ae737fa10a63ccee4691d2bc8d
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date:   Fri Dec 10 16:12:09 2021 +0100

    17579: added check if search input contains value
    
    Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>

diff --git a/cypress/integration/project.spec.js b/cypress/integration/project.spec.js
index b3d6bbed..23e1ba24 100644
--- a/cypress/integration/project.spec.js
+++ b/cypress/integration/project.spec.js
@@ -64,7 +64,7 @@ describe('Project tests', function() {
         .then(function() {
             expect(this.projects).to.have.lengthOf(1);
             expect(this.projects[0].properties).to.deep.equal(
-                {IDTAGCOLORS: 'IDVALCOLORS3'});
+                { Color: 'Magenta' });
         });
     });
 
diff --git a/src/components/search-input/search-input.tsx b/src/components/search-input/search-input.tsx
index 955cf5e5..50338f40 100644
--- a/src/components/search-input/search-input.tsx
+++ b/src/components/search-input/search-input.tsx
@@ -97,7 +97,7 @@ export const SearchInput = withStyles(styles)(
             if (nextProps.value !== this.props.value) {
                 this.setState({ value: nextProps.value });
             }
-            if (nextProps.selfClearProp !== this.state.selfClearProp) {
+            if (this.state.value !== '' && nextProps.selfClearProp && nextProps.selfClearProp !== this.state.selfClearProp) {
                 this.props.onSearch('');
                 this.setState({ selfClearProp: nextProps.selfClearProp });
             }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list