Skip to content

Commit

Permalink
Merge pull request #3349 from VrajGohil/VrajGohil/issue3348
Browse files Browse the repository at this point in the history
fix: dynamic fields not working in certopus piece
  • Loading branch information
abuaboud committed Dec 5, 2023
2 parents 9beaf6e + fdb1518 commit 4b118c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/pieces/certopus/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@activepieces/piece-certopus",
"version": "0.1.0"
"version": "0.1.1"
}
6 changes: 3 additions & 3 deletions packages/pieces/certopus/src/lib/actions/create-credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ export const createCredential = createAction({
required: true,
refreshers: ['organisation', 'event', 'category'],

props: async ({ authentication, organisation, event, category }) => {
if (!authentication) return {};
props: async ({ auth, organisation, event, category }) => {
if (!auth) return {};
if (!organisation) return {};
if (!event) return {};
if (!category) return {};

const fields: DynamicPropsValue = {};
try {
const client = makeClient(authentication.toString());
const client = makeClient(auth.toString());
const recipientFields: RecipientField[] =
await client.listRecipientFields(
organisation.toString(),
Expand Down

0 comments on commit 4b118c2

Please sign in to comment.