diff --git a/src/presenter/point-presenter.js b/src/presenter/point-presenter.js index 338e75f..cf3c4a2 100644 --- a/src/presenter/point-presenter.js +++ b/src/presenter/point-presenter.js @@ -27,7 +27,7 @@ export default class PointPresenter { #mode = Mode.DEFAULT; constructor({ pointListContainer, destinationsModel, offersModel, onDataChange, onModeChange }) { - if (!pointListContainer || !pointListContainer instanceof Element) { + if ((!pointListContainer || !pointListContainer) instanceof Element) { throw new Error('Invalid pointListContainer or its element'); } diff --git a/src/presenter/trip-presenter.js b/src/presenter/trip-presenter.js index 2fbc76f..3b58918 100644 --- a/src/presenter/trip-presenter.js +++ b/src/presenter/trip-presenter.js @@ -196,7 +196,7 @@ export default class TripPresenter { await this.#pointsModel.updatePoint(updateType, update); } catch (err) { this.#pointPresenters.get(update.id).setAborting(); - }} + }} break; case UserAction.ADD_POINT: try { diff --git a/src/template/editing-form-template.js b/src/template/editing-form-template.js index 426a5e2..7386710 100644 --- a/src/template/editing-form-template.js +++ b/src/template/editing-form-template.js @@ -13,7 +13,7 @@ function createPointType({ currentType, isDisabled }) { function createPointOffer({ offers, currentOffers, isDisabled }) { return currentOffers.offers?.map((offer) => `
-