Skip to content

Commit 4fbcebe

Browse files
kbondweaverryan
authored andcommitted
cs fix and small tweaks
1 parent a0c4d3f commit 4fbcebe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/LiveComponent/assets/src/live_controller.ts

-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ export default class extends Controller implements LiveController {
445445

446446
url += `/${encodeURIComponent(actions[0].name)}`;
447447
} else {
448-
// TODO: support on the server
449448
url += '/_batch';
450449
requestData.actions = actions;
451450
}

src/LiveComponent/src/EventListener/LiveComponentSubscriber.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function onKernelController(ControllerEvent $event): void
161161

162162
/*
163163
* Either we:
164-
* A) To not have a _mounted_component, so hydrate $component
164+
* A) We do NOT have a _mounted_component, so hydrate $component
165165
* B) We DO have a _mounted_component, so no need to hydrate,
166166
* but we DO need to make sure it's set as the controller.
167167
*/
@@ -201,7 +201,6 @@ public function onKernelController(ControllerEvent $event): void
201201
private function parseDataFor(Request $request): array
202202
{
203203
if (!$request->attributes->has('_live_request_data')) {
204-
205204
if ($request->query->has('data')) {
206205
return [
207206
'data' => json_decode($request->query->get('data'), true, 512, \JSON_THROW_ON_ERROR),

0 commit comments

Comments
 (0)