Skip to content

Commit

Permalink
2484: Fixed is vertical check
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Sep 20, 2024
1 parent 1332cd0 commit 78967b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

- [#256](https://github.com/os2display/display-admin-client/pull/257)
- [#258](https://github.com/os2display/display-admin-client/pull/258)
- Fixed screen is vertical check.
- [#257](https://github.com/os2display/display-admin-client/pull/257)
- Update multiselect component
- Change key in function from `id` to `@id`
- [#256](https://github.com/os2display/display-admin-client/pull/256)
Expand Down
2 changes: 1 addition & 1 deletion src/components/screen/screen-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function ScreenForm({
};

const isVertical = () => {
if (screen.orientation) {
if (screen?.orientation?.length > 0) {
return screen.orientation[0].id === "vertical";
}
return false;
Expand Down

0 comments on commit 78967b2

Please sign in to comment.