Skip to content

Commit

Permalink
fix(data-warehouse): Fix edit view definition button (#25509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 authored Oct 10, 2024
1 parent 273f64a commit a741adf
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions frontend/src/scenes/data-warehouse/external/DataWarehouseTables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,17 @@ export const DatabaseTableTreeWithItems = ({ inline }: DatabaseTableTreeProps):
>
Add join
</LemonButton>
{table.type == 'view' ||
(table.type == 'materialized_view' && (
<LemonButton
onClick={() => {
router.actions.push(urls.dataWarehouseView(table.id))
}}
data-attr="schema-list-item-edit"
fullWidth
>
Edit view definition
</LemonButton>
))}
{(table.type == 'view' || table.type == 'materialized_view') && (
<LemonButton
onClick={() => {
router.actions.push(urls.dataWarehouseView(table.id))
}}
data-attr="schema-list-item-edit"
fullWidth
>
Edit view definition
</LemonButton>
)}
{featureFlags[FEATURE_FLAGS.DATA_MODELING] && table.type === 'view' && (
<LemonButton
onClick={() => {
Expand Down

0 comments on commit a741adf

Please sign in to comment.