Merge pull request #642 from automatisch/refactor/use-set-action-item
refactor: Use setActionItem method to push action data item
This commit is contained in:
@@ -25,7 +25,7 @@ const findMessage = async ($: IGlobalVariable, options: FindMessageOptions) => {
|
||||
throw new Error(JSON.stringify(response.data));
|
||||
}
|
||||
|
||||
$.actionOutput.data.raw = data?.messages.matches[0];
|
||||
$.setActionItem({ raw: data?.messages.matches[0] });
|
||||
};
|
||||
|
||||
export default findMessage;
|
||||
|
@@ -36,6 +36,6 @@ export default defineAction({
|
||||
text,
|
||||
});
|
||||
|
||||
$.actionOutput.data.raw = response.data;
|
||||
$.setActionItem({ raw: response.data });
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user