refactor: Use setActionItem method to push action data item

This commit is contained in:
Faruk AYDIN
2022-10-25 12:50:55 +02:00
parent b2caea9b9b
commit 4cfae2d9c6
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));
}
$.actionOutput.data.raw = data?.messages.matches[0];
$.setActionItem({ raw: data?.messages.matches[0] });
};
export default findMessage;

View File

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