Skip to content
Snippets Groups Projects
Commit 4faa739b authored by Pierre Ecarlat's avatar Pierre Ecarlat
Browse files

Merge branch...

Merge branch '584-carto-bouton-modifier-la-structure-ne-fonctionne-pas-apres-une-recherche' into 'dev'

fix(carto): refresh structure-details should leave the panel open

See merge request !847
parents f73263a5 9e72b0e5
No related branches found
No related tags found
2 merge requests!850V3.1.0,!847fix(carto): refresh structure-details should leave the panel open
......@@ -40,7 +40,7 @@ export class StructureEditionSummaryComponent implements OnInit {
public structureFormStep = structureFormStep;
public equipmentEnum = Equipment;
public trainingCategories: Map<string, Category>;
public freeWorkshopName = FreeWorkshop;
public freeWorkshopName: FreeWorkshop = null;
// Digital learning
public categories: Category[] = [];
......@@ -73,8 +73,8 @@ export class StructureEditionSummaryComponent implements OnInit {
this.structureService.getStructureWithOwners(data.structure._id).subscribe((result) => {
this.members = result.owners;
if (result.structure.categories?.freeWorkShop.length) {
const freeWorkShop = result.structure.categories?.freeWorkShop as unknown as string;
const freeWorkShop = result.structure.categories?.freeWorkShop as unknown as FreeWorkshop;
if (freeWorkShop) {
this.freeWorkshopName = FreeWorkshop[freeWorkShop];
}
});
......
......@@ -70,7 +70,6 @@ export class CardComponent implements OnInit {
queryParams: {
structure: this.structure.permalink,
},
queryParamsHandling: 'merge',
state: { isOrientation: this.isOrientation },
});
} else {
......
......@@ -55,7 +55,6 @@ export class StructureListComponent implements OnChanges, OnInit {
queryParams: {
structure: this.selectedStructure.permalink,
},
queryParamsHandling: 'merge',
});
}
if (changes.structureList) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment