Skip to content

Commit d0feb14

Browse files
author
Petr Kachanovsky
committed
fix: change path column showIn checks
1 parent a0eda39 commit d0feb14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ getBucketLifecycleConfiguration on bucket ${this.options.s3Bucket} in region ${t
177177

178178
// if showIn of path column has 'create' or 'edit' remove it
179179
const pathColumn = resourceConfig.columns[pathColumnIndex];
180-
if (pathColumn.showIn && (pathColumn.showIn.includes('create') || pathColumn.showIn.includes('edit'))) {
181-
pathColumn.showIn = pathColumn.showIn.filter((view: string) => !['create', 'edit'].includes(view));
180+
if (pathColumn.showIn && (pathColumn.showIn.create || pathColumn.showIn.edit)) {
181+
pathColumn.showIn = { ...pathColumn.showIn, create: false, edit: false };
182182
}
183183

184184
virtualColumn.required = pathColumn.required;

0 commit comments

Comments
 (0)