Skip to content
This repository was archived by the owner on Sep 11, 2018. It is now read-only.

Commit 45b3c8e

Browse files
author
Claudio Ludovico Panetta
committed
Fix codeclimate issues
1 parent 4ae6b0b commit 45b3c8e

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGELOG

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
All notable changes to this project will be documented in this file.
33

44

5-
## [0.4] - 27-12-2016
5+
## [0.4.1]
6+
7+
### Fixed
8+
- Fix a problem on changeSelectedPhoto mutation
9+
10+
11+
## [0.4.0] - 27-12-2016
612

713
### Added
814
- Add new Photo component
@@ -17,7 +23,7 @@ All notable changes to this project will be documented in this file.
1723
- Remove index as second parameter to change the Photo
1824

1925

20-
## [0.3] - 23-12-2016
26+
## [0.3.0] - 23-12-2016
2127

2228
### Added
2329
- Add Vuex ad dependency
@@ -42,7 +48,7 @@ All notable changes to this project will be documented in this file.
4248
- Fix a problem with npmjs.org sync
4349

4450

45-
## [0.2] - 07-12-2016
51+
## [0.2.0] - 07-12-2016
4652

4753
### Added
4854
- Add Theater component
@@ -57,7 +63,7 @@ All notable changes to this project will be documented in this file.
5763
- Fix position of Theater component
5864

5965

60-
## [0.1] - 29-11-2016
66+
## [0.1.0] - 29-11-2016
6167

6268
### Added
6369
- Add first version of the carousel component

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vuejs-carousel",
33
"description": "Complete photo carousel build with VueJS and web standards in mind",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"author": "Claudio Ludovico Panetta <ludovico1990@hotmail.it>",
66
"private": false,
77
"license": "MIT",

src/store/mutations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export const mutations = {
44
},
55

66
changeSelectedPhoto(state, photo) {
7-
state.selectedPhoto = (photo != null && Object.keys(photo).length > 0) ? photo : {};
7+
state.selectedPhoto = ((photo !== undefined || photo !== null) && Object.keys(photo).length > 0) ? photo : {};
88
}
99
};

0 commit comments

Comments
 (0)