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 Skraye committed Apr 4, 2024
1 parent f7c481c commit ce48979
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 @@ -169,7 +169,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 ce48979

Please sign in to comment.