[FIX] #43 가끔 Post의 이미지를 불러오지 못하는 이슈 수정 #45
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 내용
가끔 Post 정보는 받아왔지만 이미지가 보이지 않는 이슈를 확인하였습니다. 수정 부탁드립니다.
🏠 원인분석
PostViewModel에서 Post 저장 이후, removaImages 리스트를 초기화해주지 않아 이후 다시 게시글을 수정하려고 할 때 기존 removaImage에 이미지들이 삭제되는 것이 원인이었습니다.
🪴 수정
PostViewModel에서 Post EditMode 취소 또는 저장 후, removeImage와 removeTag 배열을 clear해주었습니다.
🛠 추가 수정사항
🌹 관견 Issue
Closed #43