From 44041ad8431b90f4d16e3adf20750c7ee36bb037 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Mon, 28 Aug 2023 11:29:34 +1000 Subject: [PATCH 1/2] fix(@dpc-sdp/ripple-ui-core): :bug: check for label --- .../components/data-table/RplDataTableRow.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/ripple-ui-core/src/components/data-table/RplDataTableRow.vue b/packages/ripple-ui-core/src/components/data-table/RplDataTableRow.vue index 1950e8725e..7516c48afc 100644 --- a/packages/ripple-ui-core/src/components/data-table/RplDataTableRow.vue +++ b/packages/ripple-ui-core/src/components/data-table/RplDataTableRow.vue @@ -67,6 +67,12 @@ const handleClick = () => { state.enabled = !state.enabled } + +const hasComponent = (r: any) => + typeof r === 'object' && r.hasOwnProperty('component') + +const parseLabel = (r: any) => + typeof r === 'object' && r.hasOwnProperty('label') ? r.label : r