From 2b763dbd3a561f0c824faabcb97a1ecc0e0588f5 Mon Sep 17 00:00:00 2001 From: Sandy Ryza Date: Wed, 7 Aug 2024 14:04:05 -0700 Subject: [PATCH] followup to replace GrapheneAssetNode isSource with isMaterializable --- js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx | 2 +- js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx index f7ee57be759a8..e02d33878c3a7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx @@ -65,7 +65,7 @@ export const buildAssetTabMap = (input: AssetTabConfigInput) => { id: 'partitions', title: 'Partitions', to: buildAssetViewParams({...params, view: 'partitions'}), - hidden: !definition?.partitionDefinition || !definition?.isMaterializable, + hidden: !definition?.partitionDefinition || !definition?.isMaterializable === false, } as AssetTabConfig, checks: { id: 'checks', diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx index 2d55d87079f6f..e203389dd85ed 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx @@ -163,7 +163,7 @@ export const AssetView = ({assetKey, headerBreadcrumbs, writeAssetVisit, current }; const renderPartitionsTab = () => { - if (!definition?.isMaterializable) { + if (definition?.isMaterializable === false) { return ; }