Skip to content

Commit bfe59ee

Browse files
committed
Reference should be updated in the entity and it stored value
1 parent e754956 commit bfe59ee

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/ApiStore.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,12 @@ export default class ApiStore<S> implements StoreOptions<S> {
225225
if (has(state.items, entity.id)) {
226226
const storeEntity = state.items[entity.id];
227227
forEach(entity, (value, name: string) => {
228-
if (!isFunction(value) && !has(model.references, name)) {
229-
if (has(entity, name) && !isEqual(value, get(storeEntity, name))) {
230-
Vue.set(storeEntity, name, value);
231-
}
228+
if (
229+
!isFunction(value) &&
230+
has(entity, name) &&
231+
!isEqual(value, get(storeEntity, name))
232+
) {
233+
Vue.set(storeEntity, name, value);
232234
}
233235
});
234236

0 commit comments

Comments
 (0)