geer-builder 1.2.905 → 1.2.907

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.
@@ -4,8 +4,8 @@
4
4
  <template v-if="earning_breakdown_processed.length > 0">
5
5
  <div class="title q-pa-sm">Earnings Breakdown</div>
6
6
  <div class="content">
7
- <template v-for="breakdown in earning_breakdown_processed">
8
- <div v-if="breakdown.show && breakdown.active" :key="breakdown.complan" class="breakdown" @click="is_earning_breakdown_log_open=true;selected_complan=breakdown">
7
+ <template v-for="(breakdown, index) in earning_breakdown_processed">
8
+ <div v-if="breakdown.show && breakdown.active" :key="breakdown.complan + '-' + index" class="breakdown" @click="is_earning_breakdown_log_open=true;selected_complan=breakdown">
9
9
  <div class="breakdown-icon">
10
10
  <q-icon size="18px" :name="breakdown.icon"></q-icon>
11
11
  </div>
@@ -105,9 +105,10 @@ export default
105
105
  },
106
106
  async $_getSlotInfo()
107
107
  {
108
- if(this.user_info)
108
+ let slot_id = this.user_info && (this.user_info.active_slot || this.user_info.branch_slot);
109
+ if(slot_id)
109
110
  {
110
- await this.$bind('current_slot_info', new DB_SLOT().doc(this.user_info.active_slot || this.user_info.branch_slot));
111
+ await this.$bind('current_slot_info', new DB_SLOT().doc(slot_id));
111
112
  this.loading_slot_info = false;
112
113
  }
113
114
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.905",
3
+ "version": "1.2.907",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {