@@ -95,7 +95,7 @@ class KanbanBoard extends Component implements HasForms
9595 * @var array
9696 */
9797 #[Validate]
98- public array $ cardData = [];
98+ public array $ recordData = [];
9999
100100 /**
101101 * Number of cards to load when clicking "load more".
@@ -211,7 +211,7 @@ public function createRecordForm(Form $form): Form
211211 {
212212 $ form = $ this ->adapter ->getCreateForm ($ form , $ this ->currentColumn );
213213
214- return $ form ->model ($ this ->adapter ->baseQuery ->getModel ())->statePath ('cardData ' );
214+ return $ form ->model ($ this ->adapter ->baseQuery ->getModel ())->statePath ('recordData ' );
215215 }
216216
217217 /**
@@ -221,7 +221,7 @@ public function editRecordForm(Form $form): Form
221221 {
222222 $ form = $ this ->adapter ->getEditForm ($ form );
223223
224- return $ form ->model ($ this ->adapter ->baseQuery ->getModel ())->statePath ('cardData ' );
224+ return $ form ->model ($ this ->adapter ->baseQuery ->getModel ())->statePath ('recordData ' );
225225 }
226226
227227 /**
@@ -333,13 +333,13 @@ public function openCreateForm(string $columnId): void
333333
334334 // Pre-set the column field
335335 $ columnField = $ this ->config ['columnField ' ];
336- $ this ->cardData [$ columnField ] = $ columnId ;
336+ $ this ->recordData [$ columnField ] = $ columnId ;
337337
338338 // Apply any order field if needed
339339 $ orderField = $ this ->config ['orderField ' ];
340340 if ($ orderField !== null ) {
341341 $ count = $ this ->getColumnItemsCount ($ columnId );
342- $ this ->cardData [$ orderField ] = $ count + 1 ;
342+ $ this ->recordData [$ orderField ] = $ count + 1 ;
343343 }
344344 }
345345
@@ -369,7 +369,7 @@ public function openEditForm(string|int $cardId, string $columnId): void
369369
370370 // Fill form with card data
371371 $ this ->editRecordForm ->fill ($ card ->toArray ());
372- $ this ->cardData = $ card ->toArray ();
372+ $ this ->recordData = $ card ->toArray ();
373373 }
374374
375375 /**
@@ -412,7 +412,7 @@ public function createRecord(): void
412412 */
413413 private function resetCreateForm (): void
414414 {
415- $ this ->cardData = [];
415+ $ this ->recordData = [];
416416 $ this ->createRecordForm ->fill ();
417417 }
418418
@@ -460,7 +460,7 @@ public function updateRecord(): void
460460 */
461461 private function resetEditForm (): void
462462 {
463- $ this ->cardData = [];
463+ $ this ->recordData = [];
464464 $ this ->editRecordForm ->fill ();
465465 }
466466
0 commit comments