Feature Ignore empty parameters table
@@ -29,6 +29,8 @@ import {ActionMlUploadButton} from "../ActionMlUploadButton";
import { StatusType } from '../../models/Status';
import { stopPropagationHandler } from '../../helpers/react';
import { isVerification } from "../../models/Verification";
+import Message from '../../models/Message';
+import { isMessage } from '../../models/Message';
interface CardProps {
action: Action;
@@ -77,6 +79,11 @@ export function ActionCard({ action, children, isSelected, onSelect, isRoot, isT
const elapsedTime = getSecondsPeriod(startTime, finishTime);
+ const isEmptyParameters = parameters === null,
+ isSingleEmptyMessage = !isEmptyParameters && parameters.length == 1 && parameters[0].name === "Message" &&
+ parameters[0].value === "" && parameters[0].subParameters.length == 0,
+ showParams = !isEmptyParameters && !isSingleEmptyMessage
+
return (
<div className={rootClassName}
onClick={stopPropagationHandler(onSelect, action)}
@@ -160,7 +167,7 @@ export function ActionCard({ action, children, isSelected, onSelect, isRoot, isT
}
<div className="ac-body">
- <div className={inputParametersClassName}>
+ {showParams && <div className={inputParametersClassName}>
<SearchExpandablePanel
searchKeyPrefix={keyForAction(id, 'parameters')}
stateKey={keyForAction(id, 'parameters')}>
@@ -171,7 +178,7 @@ export function ActionCard({ action, children, isSelected, onSelect, isRoot, isT
params={parameters}
name={name} />
</SearchExpandablePanel>
- </div>
+ </div>}
{action.isTruncated ? (
<div className="ac-body__truncated-warning">
