🧑💻 Rename User ID predefined value to Result ID whic…
This commit is contained in:
@@ -116,6 +116,7 @@ const getExpressionToEvaluate =
|
||||
case 'Random ID': {
|
||||
return `"${createId()}"`
|
||||
}
|
||||
case 'Result ID':
|
||||
case 'User ID': {
|
||||
return state.typebotsQueue[0].resultId ?? `"${createId()}"`
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ export const valueTypes = [
|
||||
'Append value(s)',
|
||||
'Environment name',
|
||||
'User ID',
|
||||
'Result ID',
|
||||
'Now',
|
||||
'Today',
|
||||
'Yesterday',
|
||||
@@ -17,7 +18,7 @@ export const valueTypes = [
|
||||
'Contact name',
|
||||
] as const
|
||||
|
||||
export const hiddenTypes = ['Today'] as const
|
||||
export const hiddenTypes = ['Today', 'User ID'] as const
|
||||
|
||||
export const defaultSetVariableOptions = {
|
||||
type: 'Custom',
|
||||
|
||||
@@ -17,6 +17,7 @@ const basicSetVariableOptionsSchema = baseOptions.extend({
|
||||
'Empty',
|
||||
'Environment name',
|
||||
'User ID',
|
||||
'Result ID',
|
||||
'Random ID',
|
||||
'Phone number',
|
||||
'Contact name',
|
||||
|
||||
Reference in New Issue
Block a user