fix: duplicate element id

This commit is contained in:
Mo
2022-02-01 09:56:52 -06:00
parent a47728188f
commit b1022cd3c3
4 changed files with 18 additions and 19 deletions

View File

@@ -1,3 +1,4 @@
import { ElementIds } from '@/element_ids';
import { ContentType, SNNote, SNTag, UuidString } from '@standardnotes/snjs';
import { action, computed, makeObservable, observable } from 'mobx';
import { WebApplication } from '../application';
@@ -167,8 +168,9 @@ export class NoteTagsState {
}
reloadTagsContainerMaxWidth(): void {
const EDITOR_ELEMENT_ID = 'editor-column';
const editorWidth = document.getElementById(EDITOR_ELEMENT_ID)?.clientWidth;
const editorWidth = document.getElementById(
ElementIds.EditorColumn
)?.clientWidth;
if (editorWidth) {
this.setTagsContainerMaxWidth(editorWidth);
}