Skip to content

Commit

Permalink
правки 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ssftvyn committed Jun 9, 2024
1 parent 33486d4 commit ca69cbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/presenter/trip-presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class TripPresenter {
this.#filtersModel = filtersModel;

this.#newPointPresenter = new NewPointPresenter({
pointListContainer: this.#container,
pointListContainer: this.#component.element,
onFavoriteChange: this.#handleViewAction,
onDestroy: onNewPointDestroy,
destinationsModel: this.#destinationsModel,
Expand Down Expand Up @@ -75,6 +75,7 @@ class TripPresenter {
createPoint() {
this.#currentSortType = SortType.DEFAULT;
this.#filtersModel.setFilter(UpdateType.MAJOR, FilterType.EVERYTHING);
render(this.#component, this.#container);
this.#newPointPresenter.init();
}

Expand Down
1 change: 0 additions & 1 deletion src/view/edit-point-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ export default class EditingPointView extends AbstractStatefulView{

this.updateElement({
destination: destination.id,
destinationData: destination
});
};

Expand Down

0 comments on commit ca69cbc

Please sign in to comment.