Skip to content

Commit

Permalink
Possible fix for b is null
Browse files Browse the repository at this point in the history
  • Loading branch information
daredloco committed Dec 6, 2022
1 parent aa7136f commit ace5181
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions resources/views/livewire/gantt-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ function drawChart{{ $chartId }}() {
}
);
@if(count($optionsArray) > 0)
var options = @json($optionsArray);
@endif
var options = @json($optionsArray);
var chart = new google.visualization.Gantt(document.getElementById('{{ $chartId.$random }}'));
chart.draw(data, options);
Expand Down
4 changes: 3 additions & 1 deletion src/Http/Livewire/GanttChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class GanttChart extends Component
public $optionsArray;

public function mount(){
$newOptions = [];
$newOptions = [
'title' => 'None'
];

if(!is_null($this->height)){
$newOptions["height"] = $this->height;
Expand Down

0 comments on commit ace5181

Please sign in to comment.