Skip to content

Commit

Permalink
fix: Recognition of drivers in global settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSusa committed Jul 20, 2019
1 parent 165ed5b commit 0cbf290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/midi-bricks/src/pages/GlobalSettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function GlobalSettingsPage(props) {
// useEffect(() => {
// thunkLiveModeToggle({ isLiveMode: false })
// }, [thunkLiveModeToggle])

if (isMidiFailed) return <div />
const hasPage = Object.values(pages).length > 0
const pagesArray = hasPage ? Object.values(pages) : []
Expand Down
6 changes: 3 additions & 3 deletions packages/midi-bricks/src/utils/output-to-driver-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ export const outputToDriverName = ({ inputs, outputs }, driverNameInput, driverN

if (inputs && driverNameInput) {
inputs.forEach((item) => {
if (item.name === driverNameInput) {
if (item === driverNameInput) {
driverNameInputOut = driverNameInput
}
})
}
if (outputs && driverName) {
outputs.forEach((item) => {
if (item.name === driverName) {
driverNameOut = item.name
if (item === driverName) {
driverNameOut = item
}
})
}
Expand Down

0 comments on commit 0cbf290

Please sign in to comment.