Tom M
Tom M
TCTwill CMS
Created by Tom M on 3/7/2024 in #👊support
Cannot use connectedTo: Cannot unpack array with string keys
Hi I am having issues getting connectedTo to work in my Block. I have Twill 3.1.0 installed, but when I try to use connectedTo I get this error: Cannot unpack array with string keys (View: \vendor\area17\twill\views\partials\form\renderer\block_form.blade.php) This is the code I am using
public function getForm(): Form
{
return Form::make([
Checkbox::make()->name('use_source_description'),
Wysiwyg::make()
->name('source_description')
->connectedTo('use_source_description', true),
Wysiwyg::make()
->name('description')
->connectedTo('use_source_description', false),
]);
}
public function getForm(): Form
{
return Form::make([
Checkbox::make()->name('use_source_description'),
Wysiwyg::make()
->name('source_description')
->connectedTo('use_source_description', true),
Wysiwyg::make()
->name('description')
->connectedTo('use_source_description', false),
]);
}
The code was taken from https://github.com/area17/twill/pull/2323#issue-1869723726 I cannot figure out what I am doing wrong... Any help would be greatly appreciated.
4 replies