ywana-core8 0.0.795 → 0.0.797
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -99,7 +99,7 @@ export const CollectionContextProvider = (props) => {
|
|
99
99
|
try {
|
100
100
|
if (versioning) form.version = 1
|
101
101
|
await API.create(form);
|
102
|
-
await this.
|
102
|
+
await this.reload();
|
103
103
|
} catch (error) {
|
104
104
|
console.log(error)
|
105
105
|
}
|
@@ -110,7 +110,7 @@ export const CollectionContextProvider = (props) => {
|
|
110
110
|
try {
|
111
111
|
if (versioning) form.version = form.version ? form.version + 1 : 1
|
112
112
|
await API.update(form)
|
113
|
-
await this.
|
113
|
+
await this.reload()
|
114
114
|
} catch (error) {
|
115
115
|
console.log(error)
|
116
116
|
}
|
@@ -121,7 +121,7 @@ export const CollectionContextProvider = (props) => {
|
|
121
121
|
try {
|
122
122
|
if (versioning) form.version = form.version ? form.version + 1 : 1
|
123
123
|
await API.patch(id, form)
|
124
|
-
await this.
|
124
|
+
await this.reload()
|
125
125
|
} catch (error) {
|
126
126
|
console.log(error)
|
127
127
|
}
|
@@ -131,7 +131,7 @@ export const CollectionContextProvider = (props) => {
|
|
131
131
|
async function updateProperty(id, propertyName, form) {
|
132
132
|
try {
|
133
133
|
await API.updateProperty(id, propertyName, form)
|
134
|
-
await this.
|
134
|
+
await this.reload()
|
135
135
|
} catch (error) {
|
136
136
|
console.log(error)
|
137
137
|
}
|
@@ -141,7 +141,7 @@ export const CollectionContextProvider = (props) => {
|
|
141
141
|
async function remove(id) {
|
142
142
|
try {
|
143
143
|
await API.remove(id)
|
144
|
-
await this.
|
144
|
+
await this.reload()
|
145
145
|
} catch (error) {
|
146
146
|
console.log(error)
|
147
147
|
}
|