fix(pipedrive): check if there is no data in dynamic-data

This commit is contained in:
Rıdvan Akca
2023-10-18 10:37:16 +03:00
parent 0fca0ef734
commit 961d55a1c6
8 changed files with 8 additions and 28 deletions

View File

@@ -13,7 +13,7 @@ export default {
const { data } = await $.http.get(`${$.auth.data.apiDomain}/api/v1/users`);
if (data.data.length) {
if (data.data?.length) {
for (const user of data.data) {
users.data.push({
value: user.id,