mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix bug with listing segment where bank id doesn't exist
This commit is contained in:
@@ -35,8 +35,8 @@ class FetchesServiceConfigurations
|
||||
return array_merge([
|
||||
'active' => (int) $constant->detail->is_active ?? false,
|
||||
'billable' => (int) $constant->detail->is_billable ?? false,
|
||||
'bank_id' => $constant->detail->bank_id ?? '',
|
||||
'bank_info' => $constant->detail->bank_id ? $this->fetchesServiceBankConfigurations->execute($constant) : '',
|
||||
'bank_id' => property_exists($constant->detail, 'bank_id') ? $constant->detail->bank_id : '',
|
||||
'bank_info' => property_exists($constant->detail, 'bank_id') ? $this->fetchesServiceBankConfigurations->execute($constant) : '',
|
||||
'currencies' => $this->fetchesServiceCurrenciesConfigurations->execute($constant)
|
||||
], $this->addConfigurations($constant)->toArray());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user