fix error

This commit is contained in:
meganrogge
2022-03-21 18:16:35 -04:00
parent 4645ef706e
commit 7f131aa19a
@@ -143,12 +143,10 @@ export class OverviewRulerRenderer extends Disposable {
}
this._ctx.clearRect(0, 0, this._canvas.width, this._canvas.height);
for (const decoration of this._decorationService.decorations) {
if (decoration.options.overviewRulerOptions!.position !== 'full') {
this._renderDecoration(decoration, updateAnchor);
if (!decoration.options.overviewRulerOptions?.position) {
continue;
}
}
for (const decoration of this._decorationService.decorations) {
if (decoration.options.overviewRulerOptions!.position === 'full') {
if (decoration.options.overviewRulerOptions.position !== 'full') {
this._renderDecoration(decoration, updateAnchor);
}
}