소스 검색

identity map fixes

Ivan Asmer 4 년 전
부모
커밋
62a9e295b4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/front-models.mjs

+ 1 - 1
src/front-models.mjs

@@ -121,8 +121,8 @@ export default async function createModels2(gql, config={create: 'Upsert', updat
                     if (data._id && (data._id in identityMap)){
                         if (identityMap[data._id].empty && !empty){
                             identityMap[data._id].empty = false
-                            identityMap[data._id].populate(data)
                         }
+                        identityMap[data._id].populate(data)
                         identityMapHits++
                         console.log(identityMapHits, totalObjects, identityMapHits/totalObjects)
                         return identityMap[data._id]