geer-builder 1.2.916 → 1.2.917

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.
@@ -170,12 +170,16 @@ export default
170
170
  computed: {
171
171
  expiration_date_display()
172
172
  {
173
- if (this.enable_expiration && this.slot_info && this.slot_info.length > 0)
173
+ if (this.enable_expiration && this.slot_info)
174
174
  {
175
- let exp_result = this.$_checkSlotExpirationLocal(this.slot_info[0], this.public_settings);
176
- if (exp_result.expiration_enabled && exp_result.expiration_date)
175
+ let slot = Array.isArray(this.slot_info) ? this.slot_info[0] : this.slot_info;
176
+ if (slot && slot.created_date)
177
177
  {
178
- return this.$_formatDate(exp_result.expiration_date);
178
+ let exp_result = this.$_checkSlotExpirationLocal(slot, this.public_settings);
179
+ if (exp_result.expiration_enabled && exp_result.expiration_date)
180
+ {
181
+ return this.$_formatDate(exp_result.expiration_date);
182
+ }
179
183
  }
180
184
  }
181
185
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.916",
3
+ "version": "1.2.917",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {