Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranklin committed Mar 30, 2021
1 parent 9882183 commit e69ead9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/layers-panel/layers-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class LayersPanelComponent implements OnInit, OnDestroy {
this.showInput(ts, false);
name = name.trim();
if (name.length < 512) {
if (name && name != ts.name) {
if (name && name !== ts.name) {
ts.name = name;
this.geoDataService.updateTileServer(this.activeProject.id, ts);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/geo-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export class GeoDataService {
take(1),
map((tss: Array<TileServer>) =>
tss.map((ts: TileServer) =>
ts.id == tileServer.id ? tileServer : ts)),
ts.id === tileServer.id ? tileServer : ts)),
).subscribe((results) => {
this._tileServers.next(results);
this._dirtyTileOptions.next(true);
Expand Down

0 comments on commit e69ead9

Please sign in to comment.