@netgrif/components-core 6.2.5 → 6.2.6

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.
@@ -22987,7 +22987,7 @@ class PublicPetriNetResourceService extends PetriNetResourceService {
22987
22987
  * **Request URL:** {{baseUrl}}/api/public/petrinet/{identifier}/{version}
22988
22988
  */
22989
22989
  getOne(identifier, version, params) {
22990
- return this.provider.get$('public/petrinet/' + identifier + '/' + version, this.SERVER_URL, params)
22990
+ return this.provider.get$('public/petrinet/' + btoa(identifier) + '/' + version, this.SERVER_URL, params)
22991
22991
  .pipe(map(r => this.changeType(r, 'petriNetReferences')));
22992
22992
  }
22993
22993
  /**
@@ -27544,7 +27544,6 @@ class AbstractSingleTaskViewComponent extends AbstractViewWithHeadersComponent {
27544
27544
  this.subRoute = this._activatedRoute.paramMap.subscribe(paramMap => {
27545
27545
  if (!!(paramMap?.['params']?.[TaskConst.TRANSITION_ID])) {
27546
27546
  this.transitionId = paramMap['params'][TaskConst.TRANSITION_ID];
27547
- this.subPanelData.unsubscribe();
27548
27547
  this.subPanelData = this.taskViewService.tasks$.subscribe(tasks => {
27549
27548
  if (!!tasks && tasks.length > 0) {
27550
27549
  this.taskPanelData.next(this.resolveTransitionTask(tasks));
@@ -27556,7 +27555,9 @@ class AbstractSingleTaskViewComponent extends AbstractViewWithHeadersComponent {
27556
27555
  }
27557
27556
  ngOnDestroy() {
27558
27557
  super.ngOnDestroy();
27559
- this.subRoute.unsubscribe();
27558
+ if (!!this.subRoute) {
27559
+ this.subRoute.unsubscribe();
27560
+ }
27560
27561
  if (!!this.subPanelData) {
27561
27562
  this.subPanelData.unsubscribe();
27562
27563
  }
@@ -31798,7 +31799,7 @@ const publicFactoryResolver = (userService, sessionService, authService, router,
31798
31799
  };
31799
31800
 
31800
31801
  const getNetAndCreateCase = (router, route, process, caseResourceService, snackBarService, translate, publicTaskLoadingService) => {
31801
- process.getNet(route.snapshot.paramMap.get('petriNetId')).pipe(mergeMap(net => {
31802
+ process.getNet(atob(route.snapshot.paramMap.get('petriNetId'))).pipe(mergeMap(net => {
31802
31803
  if (net) {
31803
31804
  publicTaskLoadingService.setLoading$(true);
31804
31805
  const newCase = {