Skip to content

Commit

Permalink
Fix missing data labels auto discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
eliseekn committed Apr 24, 2024
1 parent 2736c6b commit 9d1d86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatesFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected function getLabelsData(): array
$result = [];

$labelColumn = explode('.', $this->labelColumn)[1];
$missingDataLabels = DB::table($this->builder->from)->get()->pluck($labelColumn)->toArray();
$missingDataLabels = DB::table($this->table)->get()->pluck($labelColumn)->toArray();

foreach ($missingDataLabels as $label) {
$result[$label] = $this->missingDataValue;
Expand Down

0 comments on commit 9d1d86d

Please sign in to comment.