Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot 074550bd54 chore(release): 0.1.0-develop.28 [skip ci]
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2023-10-12)

### Bug Fixes

* handling of children ([d886b6f](d886b6f2d0))
2023-10-12 18:23:03 +00:00
Derrick Hammer 8014c5a86c
Merge remote-tracking branch 'origin/develop' into develop 2023-10-12 14:21:27 -04:00
Derrick Hammer d886b6f2d0
fix: handling of children 2023-10-12 14:21:23 -04:00
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2023-10-12)
### Bug Fixes
* handling of children ([d886b6f](https://git.lumeweb.com/LumeWeb/sdk/commit/d886b6f2d075af654ea173c607521e81af8d7bd6))
# [0.1.0-develop.27](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.26...v0.1.0-develop.27) (2023-10-12)
# [0.1.0-develop.26](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.25...v0.1.0-develop.26) (2023-10-12)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.27",
"version": "0.1.0-develop.28",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.27",
"version": "0.1.0-develop.28",
"dependencies": {
"@lumeweb/kernel-network-registry-client": "0.1.0-develop.10",
"@lumeweb/libkernel": "0.1.0-develop.65",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.27",
"version": "0.1.0-develop.28",
"type": "module",
"main": "lib/index.js",
"types": "lib/src/index.d.ts",

View File

@ -38,7 +38,9 @@ const LumeDashboard = (props: any) => {
</button>
</LumeDashboardTrigger>
);
const GivenTrigger = React.Children.toArray(children.children)
const GivenTrigger = React.Children.toArray(
children?.children || (children as any) || [],
)
.filter((c) => {
if (typeof c === "object") {
//@ts-expect-error -- I dont know what the type of this should be, i just know that this works