Skip to content

Commit

Permalink
Alternate syntax for splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
adorack committed Feb 11, 2025
1 parent 0c4bdb6 commit 6f6799e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ const props = defineProps<RendererProps<TopNTableOptions>>()
const { evaluateFeatureFlag } = composables.useEvaluateFeatureFlag()
const hasKebabMenuAccess = evaluateFeatureFlag('ma-3043-analytics-chart-kebab-menu', false)
const AsyncEntityLink = defineAsyncComponent(() =>
import('@kong-ui-public/entities-shared').then(({ EntityLink }) => {
return EntityLink
}).catch(() => {
return FallbackEntityLink
}))
const AsyncEntityLink = defineAsyncComponent({
loader: () => import('@kong-ui-public/entities-shared').then(({ EntityLink }) => EntityLink),
errorComponent: FallbackEntityLink,
})
const parseLink = (record: TopNTableRecord) => {
if (props.chartOptions?.entityLink) {
Expand Down

0 comments on commit 6f6799e

Please sign in to comment.