Browse Source

Issues with Property Store.

master
George Williams 5 years ago
parent
commit
28845a4bbf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/store/modules/property/property.js

+ 2
- 2
src/store/modules/property/property.js View File

@@ -36,7 +36,7 @@ export default {
36 36
   },
37 37
   mutations: {
38 38
     setProperty(state, property) {
39
-      state.property = property;
39
+      state.properties.push(property);
40 40
     },
41 41
     setPropertyImages(state, images) {
42 42
       state.propertyImages = images;
@@ -57,7 +57,7 @@ export default {
57 57
       state.propertyFields = fields;
58 58
     },
59 59
     updateCurrentProperty(state, property) {
60
-      state.property = property;
60
+      state.properties.push(property);
61 61
     },
62 62
     updateSearch(state, propertySearch) {
63 63
       state.properties = propertySearch;

Loading…
Cancel
Save