Skip to content

Commit

Permalink
Fix block editor group parameter update
Browse files Browse the repository at this point in the history
Both `group` and `groups` can be used and receive a string or an array
  • Loading branch information
ifox committed Jul 20, 2020
1 parent 52b6628 commit 121b016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/TwillServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
use A17\Twill\Commands\ModuleMake;
use A17\Twill\Commands\ModuleMakeDeprecated;
use A17\Twill\Commands\RefreshLQIP;
use A17\Twill\Commands\Update;
use A17\Twill\Commands\SyncLang;
use A17\Twill\Commands\Update;
use A17\Twill\Http\ViewComposers\ActiveNavigation;
use A17\Twill\Http\ViewComposers\CurrentUser;
use A17\Twill\Http\ViewComposers\FilesUploaderConfig;
Expand Down Expand Up @@ -43,7 +43,7 @@ class TwillServiceProvider extends ServiceProvider
*
* @var string
*/
const VERSION = '2.1.0';
const VERSION = '2.1.1';

/**
* Service providers to be registered.
Expand Down
2 changes: 1 addition & 1 deletion views/partials/form/_block_editor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a17-content title="{{ $label }}"></a17-content>

@php
$allowedBlocks = generate_list_of_available_blocks($blocks ?? null, $groups ?? null);
$allowedBlocks = generate_list_of_available_blocks($blocks ?? null, $group ?? $groups ?? null);
@endphp

@push('vuexStore')
Expand Down

0 comments on commit 121b016

Please sign in to comment.