gatsby-matrix-theme 7.1.5 → 7.1.6

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [7.1.6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.5...v7.1.6) (2022-05-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * comparison table null image fix ([8fb35c9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8fb35c9e531e86c4bc9a570e2e09d462eb85753e))
7
+
1
8
  ## [7.1.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.4...v7.1.5) (2022-05-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "7.1.5",
3
+ "version": "7.1.6",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -194,16 +194,19 @@ export default function ComparisonTable({
194
194
  return (
195
195
  <td key={key} className={styles.licenses}>
196
196
  {item?.relation?.bonus?.license_objects &&
197
- item?.relation?.bonus?.license_objects
198
- .slice(0, 3)
199
- .map((license) => (
200
- <LazyImg
201
- key={license.name}
202
- src={imagePrettyUrl(license?.logo_filename)}
203
- height={32}
204
- alt={license.name}
205
- />
206
- ))}
197
+ item?.relation?.bonus?.license_objects.slice(0, 3).map((license) => {
198
+ if (license?.logo_filename) {
199
+ return (
200
+ <LazyImg
201
+ key={license.name}
202
+ src={imagePrettyUrl(license?.logo_filename)}
203
+ height={32}
204
+ alt={license.name}
205
+ />
206
+ );
207
+ }
208
+ return <></>;
209
+ })}
207
210
  </td>
208
211
  );
209
212
  default:
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.7aedec23.iframe.bundle.js"></script><script src="152.cf98088f.iframe.bundle.js"></script><script src="main.4827d8d6.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.7aedec23.iframe.bundle.js"></script><script src="152.cf98088f.iframe.bundle.js"></script><script src="main.c4cc6768.iframe.bundle.js"></script></body></html>