@internetarchive/ia-book-actions 0.0.13 → 0.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/ia-book-actions",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -144,6 +144,7 @@ export default class GetLendingActions {
144
144
  primaryTitle: 'Book available to patrons with print disabilities.',
145
145
  primaryActions: [unavailable],
146
146
  primaryColor: 'primary',
147
+ secondaryActions: [],
147
148
  };
148
149
  }
149
150
 
@@ -147,11 +147,11 @@ export default class IABookActions extends LitElement {
147
147
  if (!actions) return;
148
148
 
149
149
  this.primaryTitle = actions.primaryTitle;
150
- this.primaryActions = actions.primaryActions.filter(action => {
150
+ this.primaryActions = actions.primaryActions?.filter(action => {
151
151
  return action != null;
152
152
  });
153
153
  this.primaryColor = actions.primaryColor;
154
- this.secondaryActions = actions.secondaryActions.filter(action => {
154
+ this.secondaryActions = actions.secondaryActions?.filter(action => {
155
155
  return action != null;
156
156
  });
157
157