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:
Ömer Faruk Aydın
2022-10-25 19:59:13 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ const findMessage = async ($: IGlobalVariable, options: FindMessageOptions) => {
throw new Error(JSON.stringify(response.data)); throw new Error(JSON.stringify(response.data));
} }
$.actionOutput.data.raw = data?.messages.matches[0]; $.setActionItem({ raw: data?.messages.matches[0] });
}; };
export default findMessage; export default findMessage;

View File

@@ -36,6 +36,6 @@ export default defineAction({
text, text,
}); });
$.actionOutput.data.raw = response.data; $.setActionItem({ raw: response.data });
}, },
}); });