refactored mapitem (main and clones) generation for better superpositions opening
This commit is contained in:
@@ -61,7 +61,7 @@ export default {
|
||||
if (this.superposition) {
|
||||
let r = null;
|
||||
this.superposition.forEach(s => {
|
||||
if(s.cid !== this.opened_concernement.id){
|
||||
if(this.opened_concernement && s.cid !== this.opened_concernement.id){
|
||||
r = {
|
||||
cid: s.cid,
|
||||
eid: s.eid
|
||||
@@ -156,7 +156,7 @@ export default {
|
||||
<PuissanceAgir v-if="map_mode === 'puissancedagir'" :id="cid"/>
|
||||
<Doleancer v-if="map_mode === 'doleancer'" :id="cid"/>
|
||||
</section>
|
||||
<section v-if="map_mode === 'superposition' && superposition" class="concernement clone">
|
||||
<section v-if="map_mode === 'superposition' && superposition && superposed_cid_eid" class="concernement clone">
|
||||
<TerrainDeVie :cid="superposed_cid_eid.cid" :eid="superposed_cid_eid.eid" />
|
||||
</section>
|
||||
<nav class="close-concernement" @click="closeConcernement">
|
||||
|
Reference in New Issue
Block a user