Skip to content

Commit 3cd3c64

Browse files
committed
fix: temp app already existed in detected apps
1 parent bdc019b commit 3cd3c64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/reducers/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const appInfo: Reducer<Dict<AppInfo>> = (state = {}, action) => {
1111
case GET_APPS:
1212
return payload
1313
case ADD_TEMP_APP:
14+
if (state[payload.id]) return state
1415
return {
1516
...state,
1617
[payload.id]: {

0 commit comments

Comments
 (0)