Skip to content

Conversation

@RishadAlam
Copy link
Member

No description provided.

export const generateMappedField = (buddyBossConf) => {
switch (Number(buddyBossConf.mainAction)) {
case CREATE_GROUP_PRO:
var fields = buddyBossConf?.createGroupFields
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use let

}) {
useEffect(() => {
if (['2', '6', '8', '9'].includes(buddyBossConf?.mainAction)) {
if (toFetchGroups.includes(Number(buddyBossConf?.mainAction))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assign Number(buddyBossConf?.mainAction) it to a var

@RishadAlam RishadAlam merged commit 371dccb into main Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants