Skip to content

Commit

Permalink
Merge pull request #258 from os2display/feature/2484-fixed-is-vertical
Browse files Browse the repository at this point in the history
Fixed is vertical check
  • Loading branch information
tuj authored Sep 20, 2024
2 parents 1332cd0 + 78967b2 commit 9708f9e
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 9708f9e

Please sign in to comment.