From e16588bcf0bebea162117dfc1df4d5b462688596 Mon Sep 17 00:00:00 2001 From: JEFFREY-Bonson Date: Tue, 21 Nov 2023 10:52:22 +0530 Subject: [PATCH] refactoring code --- .../miq-structured-list-object.jsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/app/javascript/components/miq-structured-list/miq-structured-list-body/value-types/miq-structured-list-object.jsx b/app/javascript/components/miq-structured-list/miq-structured-list-body/value-types/miq-structured-list-object.jsx index 5615081bd97a..131d1aa1d227 100644 --- a/app/javascript/components/miq-structured-list/miq-structured-list-body/value-types/miq-structured-list-object.jsx +++ b/app/javascript/components/miq-structured-list/miq-structured-list-body/value-types/miq-structured-list-object.jsx @@ -6,14 +6,17 @@ import MiqStructuredListConditionalTag from '../value-tags/miq-structured-list-c /** Usage eg: Automation / Embeded Automate / Generic Objects / item * Properties has no links & Relationships have links */ -const MiqStructuredListObject = ({ row, clickEvents, onClick }) => ( - - - -); +const MiqStructuredListObject = ({ row, clickEvents, onClick }) => { + const isContent = row.label || (row.value && row.value.input); + return (( + + + + )); +}; export default MiqStructuredListObject;