|
@@ -644,7 +644,7 @@ export const ConcernementsStore = defineStore({
|
|
openCloseConcernements (cid, mi_id) {
|
|
openCloseConcernements (cid, mi_id) {
|
|
console.log(`openCloseConcernements cid: ${cid}, mi_id: ${mi_id}`);
|
|
console.log(`openCloseConcernements cid: ${cid}, mi_id: ${mi_id}`);
|
|
var state;
|
|
var state;
|
|
- let mapitem_id = mi_id ? mi_id : this.concernementsByID[cid].mapitems_ids[0];
|
|
|
|
|
|
+ let mapitem_id = mi_id ? mi_id : cid ? this.concernementsByID[cid].mapitems_ids[this.concernementsByID[cid].mapitems_ids.length -1] : null;
|
|
this.opened_concernement = null;
|
|
this.opened_concernement = null;
|
|
this.opened_recit = null;
|
|
this.opened_recit = null;
|
|
this.concernements.forEach((c, i) => {
|
|
this.concernements.forEach((c, i) => {
|