Skip to content

Conversation

@RishadAlam
Copy link
Member

No description provided.

Comment on lines 148 to 170
if (result && result.success) {
if (result.data) {
setFluentCrmConf((prevConf) =>
create(prevConf, (newConf) => {
newConf.companies = result.data
})
)
setSnackbar({
show: true,
msg: __('Fluent CRM Companies refreshed', 'bit-integrations')
})
} else {
setSnackbar({
show: true,
msg: __('No Fluent CRM Companies found', 'bit-integrations')
})
}
} else {
setSnackbar({
show: true,
msg: __('Fluent CRM Companies refresh failed. please try again', 'bit-integrations')
})
}
Copy link
Member

Choose a reason for hiding this comment

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

Simplify this

self::checkedExistsFluentCRM();

$response = [];
$companies = Company::get();
Copy link
Member

Choose a reason for hiding this comment

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

Use pagination

@RishadAlam RishadAlam merged commit 4f25070 into main Dec 4, 2024
@RishadAlam RishadAlam deleted the feature/fluentCRM-company branch May 25, 2025 11:59
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.

3 participants