Browse Source

Issues with Property Store.

master
George Williams 6 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
   },
36
   },
37
   mutations: {
37
   mutations: {
38
     setProperty(state, property) {
38
     setProperty(state, property) {
39
-      state.property = property;
39
+      state.properties.push(property);
40
     },
40
     },
41
     setPropertyImages(state, images) {
41
     setPropertyImages(state, images) {
42
       state.propertyImages = images;
42
       state.propertyImages = images;
57
       state.propertyFields = fields;
57
       state.propertyFields = fields;
58
     },
58
     },
59
     updateCurrentProperty(state, property) {
59
     updateCurrentProperty(state, property) {
60
-      state.property = property;
60
+      state.properties.push(property);
61
     },
61
     },
62
     updateSearch(state, propertySearch) {
62
     updateSearch(state, propertySearch) {
63
       state.properties = propertySearch;
63
       state.properties = propertySearch;

Loading…
Cancel
Save