Skip to content

Commit

Permalink
fix(ui): no more editor shrink due to localStorage value missing
Browse files Browse the repository at this point in the history
closes #3451
  • Loading branch information
brian-mulier-p authored and tchiotludo committed Apr 16, 2024
1 parent 2497ab9 commit 4b5bdc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/components/inputs/EditorView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@
const editorDomElement = ref(null);
const editorWidthStorageKey = "editor-size";
const editorWidth = ref(localStorage.getItem(editorWidthStorageKey));
const localStorageStoredWidth = localStorage.getItem(editorWidthStorageKey);
const editorWidth = ref(localStorageStoredWidth ?? 50);
const validationDomElement = ref(null);
const isLoading = ref(false);
const haveChange = ref(props.isDirty)
Expand Down

0 comments on commit 4b5bdc4

Please sign in to comment.