Bläddra i källkod

Issues with Property Store.

master
George Williams 6 år sedan
förälder
incheckning
28845a4bbf
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      src/store/modules/property/property.js

+ 2
- 2
src/store/modules/property/property.js Visa fil

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;

Laddar…
Avbryt
Spara