mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Fix for incorrect value for query dropdown in event selector
This commit is contained in:
parent
e185434014
commit
6e079df6d5
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { ActionTypes } from '../ActionTypes';
|
||||
|
||||
export const EventSelector = ({ param, definition, eventUpdated, eventOptionUpdated, dataQueries, extraData }) => {
|
||||
export const EventSelector = ({ param, definition, eventUpdated, eventOptionUpdated, dataQueries, extraData, options }) => {
|
||||
|
||||
console.log('dq', dataQueries);
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ export const EventSelector = ({ param, definition, eventUpdated, eventOptionUpda
|
|||
{definition.actionId === 'run-query' &&
|
||||
<div className="p-3">
|
||||
<label class="form-label mt-2">Query</label>
|
||||
<select class="form-select" onChange={onChange} >
|
||||
<select class="form-select" onChange={onChange} value={definition.options.queryId}>
|
||||
{dataQueries.map((query) => (<option value={query.id}>{query.name}</option>))}
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue