testing actions on dynamic components load
This commit is contained in:
parent
4d5b634e55
commit
f060090b0c
@ -9,7 +9,7 @@
|
||||
type: 'chat'
|
||||
};
|
||||
|
||||
const appCommandPattern = /@app:(\w+)/;
|
||||
const appCommandPattern = /@(\w+)/;
|
||||
const match = text.match(appCommandPattern);
|
||||
if (match && match[1]) {
|
||||
message.composite = {
|
||||
@ -17,7 +17,8 @@
|
||||
children: [
|
||||
{
|
||||
componentName: match[1], // Matched component name
|
||||
props: {}
|
||||
props: {},
|
||||
actions: ['ClearMessages']
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user