Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanthamara committed Dec 2, 2024
1 parent 1ba4f62 commit d6e7e35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions features/admin.actions.v1/api/use-get-action-by-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const useGetActionById = <Data = ActionResponseInterface, Error = RequestErrorIn
};

const shouldFetch: boolean = !isEmpty(actionId);

const { data, error, isLoading, isValidating, mutate } = useRequest<Data, Error>(
shouldFetch ? requestConfig : null,
{ shouldRetryOnError: false }
Expand Down
6 changes: 3 additions & 3 deletions modules/i18n/src/translations/en-US/portals/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ export const actions: actionsNS = {
},
fetchById: {
description: "{{description}}",
message: "Error fetching the action."
message: "Error retrieving the action."
},
fetchByType: {
description: "{{description}}",
message: "Error fetching actions."
message: "Error retrieving actions."
},
typesFetch: {
description: "{{description}}",
message: "Error fetching the action types."
message: "Error retrieving the action types."
},
update: {
description: "{{description}}",
Expand Down

0 comments on commit d6e7e35

Please sign in to comment.