New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Remove empty values from select filter (#1245) #1267
Conversation
columnName, | ||
targetData.map((data) => ({ | ||
...data, | ||
[columnName]: isNil(data[columnName]) ? '' : data[columnName], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Data에 null, '' 값 등 Nil 값이 여러개가 들어가있는 경우
SelectAll 체크 후, Empty Value
Row 체크 해제를 하려면 Nil Row Count 만큼 눌러야 체크 해제가 되고 있어서
uniqColumnData 처리에 추가 필터링을 해주었습니다
const validState = state.filter((item) => String(item.value).length); | ||
|
||
if (type !== 'select' && !validState.length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 체크 코드는 유지되어야겠네요~! 이 코드가 없으면 빈 텍스트를 입력(텍스트 필터인 경우)했을때 필터가 해제되지 않네요ㅎㅎ
@ryum91 |
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks! |
bb55e56
to
81ba985
Compare
@ryum91 |
Please check if the PR fulfills these requirements
fix #xxx[,#xxx]
, where "xxx" is the issue number)Description
Thank you for your contribution to TOAST UI product. 🎉 😘 ✨