playbook_ui 14.6.0.pre.rc.14 → 14.6.0.pre.rc.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bbe467c31332c6411a5f034492cde278e4a8762d175d03e56396306995ae0d5
4
- data.tar.gz: 9299949a44578e5259fe125de4937611484cee21072d6cc6c6f749e06b9c989f
3
+ metadata.gz: a85d84ea47e1b511c8e5fcc45bddd310d6001373522ae76e35bcde28f7be2bf4
4
+ data.tar.gz: 97bc4539729392e6a2df0a70fc67a30356ff62a936dcfa52f6f9b1c5761ed9b6
5
5
  SHA512:
6
- metadata.gz: 6ce64547914270ca8541b9d4c0e01a4441918cbd023e0ec6aad8b18ce69871039e4f9da03c71074f4c18cedb187590498539639c1c184839a47df3e16b9669e9
7
- data.tar.gz: 16bfc25242bd1fba1f95b5e12f8bb3debc9891acd43c1feaedcc46dd429ddf571ddf3717d8d63e853ac70ce3eed46e8ae662cc4cc1086b529069fdfcdfeed11c
6
+ metadata.gz: 75d02da02b56ccc26a746da13527b0ec26893bcc16a03658f800e520ccfc1c8b2231745929733539eb473ec9a9200527f5164eb586f864e6c919805fd1b1d290
7
+ data.tar.gz: 7530e8b2cec153a53c1ae7174daad5201da4ce903b83ac13b4073f0511acad8c20c0fefaf50511b696ce140ee629dad9d0e939736b9b7c8957a0631a70ddb3e6
@@ -13,6 +13,7 @@ type ResultsCountProps = {
13
13
  const ResultsCount = ({ dark, results, title }: ResultsCountProps): React.ReactElement => {
14
14
 
15
15
  const resultTitle = () => {
16
+ if (results == null) return null
16
17
  return (
17
18
  <TitleCount
18
19
  align="center"
@@ -24,6 +25,7 @@ const ResultsCount = ({ dark, results, title }: ResultsCountProps): React.ReactE
24
25
  }
25
26
 
26
27
  const justResults = () => {
28
+ if (results == null) return null
27
29
  return (
28
30
  <Caption
29
31
  className="filter-results"
@@ -35,13 +37,13 @@ const ResultsCount = ({ dark, results, title }: ResultsCountProps): React.ReactE
35
37
  }
36
38
 
37
39
  const displayResultsCount = () => {
38
- if (results && title) {
40
+ if (results != null && results >=0 && title) {
39
41
  return (
40
42
  <>
41
43
  {resultTitle()}
42
44
  </>
43
45
  )
44
- } else if (results) {
46
+ } else if (results !=null && results >=0 ) {
45
47
  return (
46
48
  <>
47
49
  {justResults()}
@@ -78,7 +78,7 @@ const FilterDefault = (props) => {
78
78
  double
79
79
  minWidth="375px"
80
80
  onSortChange={SortingChangeCallback}
81
- results={1}
81
+ results={0}
82
82
  sortOptions={{
83
83
  popularity: 'Popularity',
84
84
  // eslint-disable-next-line