Skip to content

Commit

Permalink
[#1741]Grid > resize시 옵셔널 체이닝 추가 필요 (#1742)
Browse files Browse the repository at this point in the history
* [#1741]Grid > resize시 옵셔널 체이닝 추가 필요
########

- width 앞에 옵셔널 체이닝 추가

* chore. 버전 업
  • Loading branch information
sonky740 authored Aug 9, 2024
1 parent 309e6f9 commit 5e8c129
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evui",
"version": "3.4.56",
"version": "3.4.57",
"description": "A EXEM Library project",
"author": "exem <dev_client@ex-em.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/components/grid/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ export default {
stores.orderedColumns.map((column) => {
const item = column;

if (!props.columns[column.index].width && !item.resized) {
if (!props.columns[column.index]?.width && !item.resized) {
item.width = 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/treeGrid/TreeGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ export default {
stores.orderedColumns.map((column) => {
const item = column;
if (!props.columns[column.index].width && !item.resized) {
if (!props.columns[column.index]?.width && !item.resized) {
item.width = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/treeGrid/uses.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const resizeEvent = (params) => {
stores.orderedColumns.forEach((column) => {
const item = column;

if (!props.columns[column.index].width && !item.resized) {
if (!props.columns[column.index]?.width && !item.resized) {
item.width = 0;
}

Expand Down

0 comments on commit 5e8c129

Please sign in to comment.