Skip to content

Commit ba862ff

Browse files
committed
bug #791 [Live] Removing usage of "key" which may not be set (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [Live] Removing usage of "key" which may not be set | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | None | License | MIT `key` - aka the component name - is now optional at this point. Commits ------- a7c742a Removing usage of "key" which may not be set
2 parents cc414dc + a7c742a commit ba862ff

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Autocomplete/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
- Added support for using [OptionGroups](https://tom-select.js.org/examples/optgroups/).
1212

13-
1413
## 2.7.0
1514

1615
- Add `assets/src` to `.gitattributes` to exclude them from the installation

src/LiveComponent/src/DependencyInjection/Compiler/ComponentDefaultActionPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function process(ContainerBuilder $container): void
3333
$defaultAction = trim($component[0]['default_action'] ?? '__invoke', '()');
3434

3535
if (!method_exists($class, $defaultAction)) {
36-
throw new \LogicException(sprintf('Live component "%s" (%s) requires the default action method "%s".%s', $class, $component[0]['key'], $defaultAction, '__invoke' === $defaultAction ? ' Either add this method or use the DefaultActionTrait' : ''));
36+
throw new \LogicException(sprintf('Live component "%s" requires the default action method "%s".%s', $class, $defaultAction, '__invoke' === $defaultAction ? ' Either add this method or use the DefaultActionTrait' : ''));
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)