diff --git a/app/Livewire/BoardDispatcher.php b/app/Livewire/BoardDispatcher.php index d456c4c1..4d0201f8 100644 --- a/app/Livewire/BoardDispatcher.php +++ b/app/Livewire/BoardDispatcher.php @@ -78,11 +78,11 @@ class BoardDispatcher extends Component public function copyResult() { - $copystring = `Line One\nLine Two\nLine Three`; - // foreach ($this->results as $row) { - // $copystring .= "`" . implode("\t", $row) . "\n`"; - // } - $this->js("navigator.clipboard.writeText(`Line One\nLine Two\nLine Three`)"); + $copystring = ''; + foreach ($this->results as $row) { + $copystring .= implode("\t", $row) . "\n"; + } + $this->js("navigator.clipboard.writeText(`$copystring`)"); }