BugFixes image upload, image display, new DB structure for areasServed, licenedIn
This commit is contained in:
@@ -39,7 +39,7 @@ import { getCriteriaStateObject, getSessionStorageHandler, resetCriteria } from
|
||||
NgOptimizedImage,
|
||||
],
|
||||
templateUrl: './broker-listings.component.html',
|
||||
styleUrl: './broker-listings.component.scss',
|
||||
styleUrls: ['./broker-listings.component.scss', '../../pages.scss'],
|
||||
})
|
||||
export class BrokerListingsComponent {
|
||||
environment = environment;
|
||||
@@ -71,10 +71,11 @@ export class BrokerListingsComponent {
|
||||
private route: ActivatedRoute,
|
||||
) {
|
||||
this.criteria = onChange(getCriteriaStateObject(), getSessionStorageHandler);
|
||||
this.criteria.type = undefined;
|
||||
this.route.data.subscribe(async () => {
|
||||
if (this.router.getCurrentNavigation().extras.state) {
|
||||
resetCriteria(this.criteria);
|
||||
} else {
|
||||
this.first = this.criteria.page * this.criteria.length;
|
||||
}
|
||||
this.init();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user