mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fixes: event rendering actions
This commit is contained in:
parent
5a6149b8c0
commit
d3d52756fd
1 changed files with 2 additions and 2 deletions
|
|
@ -184,7 +184,7 @@ export const EventManager = ({
|
||||||
|
|
||||||
function getComponentActionDefaultParams(componentId, actionHandle) {
|
function getComponentActionDefaultParams(componentId, actionHandle) {
|
||||||
const action = getAction(componentId, actionHandle);
|
const action = getAction(componentId, actionHandle);
|
||||||
const defaultParams = (action.params ?? []).map((param) => ({
|
const defaultParams = (action?.params ?? []).map((param) => ({
|
||||||
handle: param.handle,
|
handle: param.handle,
|
||||||
value: param.defaultValue,
|
value: param.defaultValue,
|
||||||
}));
|
}));
|
||||||
|
|
@ -757,7 +757,7 @@ export const EventManager = ({
|
||||||
</div>
|
</div>
|
||||||
{event?.componentId &&
|
{event?.componentId &&
|
||||||
event?.componentSpecificActionHandle &&
|
event?.componentSpecificActionHandle &&
|
||||||
(getAction(event?.componentId, event?.componentSpecificActionHandle).params ?? []).map((param) => (
|
(getAction(event?.componentId, event?.componentSpecificActionHandle)?.params ?? []).map((param) => (
|
||||||
<div className="row mt-2" key={param.handle}>
|
<div className="row mt-2" key={param.handle}>
|
||||||
<div className="col-3 p-1" data-cy={`action-options-${param?.displayName}-field-label`}>
|
<div className="col-3 p-1" data-cy={`action-options-${param?.displayName}-field-label`}>
|
||||||
{param?.displayName}
|
{param?.displayName}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue