Skip to content

Commit

Permalink
L-58 Fix edycji tech_stack
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo1379 committed Apr 20, 2020
1 parent a66aa70 commit a809b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/offer/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$('.chips').materialChip({
placeholder: 'Enter a skill',
secondaryPlaceholder: '+Skill',
data: JSON.parse('{!! $offer ? $offer->tech_stack : '{}' !!}')
data: JSON.parse('{!! $offer && $offer->tech_stack ? $offer->tech_stack : '{}' !!}')
});
$('#offer-form').on('submit', function (e) {
e.preventDefault();
Expand Down

0 comments on commit a809b30

Please sign in to comment.