Skip to content

Commit

Permalink
Minor style improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Dec 17, 2016
1 parent 220170d commit 3ef9f8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function focusUid({dispatch}, uid) {

// Listens for cli commands and sessions
exports.middleware = store => next => action => {
const {type, data} = action
const {type, data, uid} = action

// Check for hyperlayout config
if (type === 'SESSION_ADD_DATA') {
Expand All @@ -166,8 +166,8 @@ exports.middleware = store => next => action => {
// Check for sessions
if (type === 'SESSION_ADD' && hyperlayout) {
// Check if it's a new session
if (!hyperlayout.knownUids.includes(action.uid)) {
hyperlayout.knownUids.push(action.uid)
if (!hyperlayout.knownUids.includes(uid)) {
hyperlayout.knownUids.push(uid)
setTimeout(() => {
hyperlayout.work()
}, 0)
Expand Down

0 comments on commit 3ef9f8c

Please sign in to comment.