@sjcrh/proteinpaint-server 2.57.0 → 2.58.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  f{}
3
3
  filter object
4
- returns a GDC filter object
4
+ returns a GDC filter object, or null if no filter
5
5
 
6
6
  GDC filter: https://docs.gdc.cancer.gov/API/Users_Guide/Search_and_Retrieval/
7
7
 
@@ -91,7 +91,7 @@ export function filter2GDCfilter(f) {
91
91
  }
92
92
  throw 'unknown tvs structure when converting to gdc filter'
93
93
  }
94
- return obj
94
+ return obj.content.length ? obj : null
95
95
  }
96
96
 
97
97
  /*