Skip to content

Commit

Permalink
Fixed the name of the new comment.
Browse files Browse the repository at this point in the history
With this fix, user can open a new commen popup without closing a previous new comment popup.

Without this, a new comment section lingers at the background and new comment command fails until user refreshes page.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If7f151eb11d3f5d26dae2ca6331eb5dc0dfd9881
  • Loading branch information
gokaysatir committed Oct 18, 2023
1 parent 7dae294 commit d5cda35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser/src/layer/tile/CalcTileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ L.CalcTileLayer = L.CanvasTileLayer.extend({
author: this._map.getViewName(this._viewId)
};

if (app.sectionContainer.doesSectionExist(newComment.name)) // If adding a new comment has failed, we need to remove the leftover.
app.sectionContainer.removeSection(newComment.name);
if (app.sectionContainer.doesSectionExist('new comment')) // If adding a new comment has failed, we need to remove the leftover.
app.sectionContainer.removeSection('new comment');

comment = app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).add(newComment);
comment.show();
Expand Down

0 comments on commit d5cda35

Please sign in to comment.