Skip to content

Commit

Permalink
Add browser name to the browser table column key
Browse files Browse the repository at this point in the history
  • Loading branch information
zeezo887 authored and ifox committed May 23, 2024
1 parent dc9443d commit 7f1035d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Services/Listings/Columns/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,17 @@ protected function getRenderValue(TwillModelContract $model): string
->pluck($this->field)
->join(', ');
}

public function getKey(): string
{
if ($this->key === null) {
throw new ColumnMissingPropertyException();
}

if (null === $this->browser) {
throw new ColumnMissingPropertyException('Browser column missing browser value: ' . $this->field);
}

return "$this->browser.$this->key";
}
}

0 comments on commit 7f1035d

Please sign in to comment.