kirschbaum-development / nova-inline-relationship

A package to present relationships as inline properties in Nova.
MIT License
196 stars 84 forks source link

Recursivity for flatMap #121

Open jmverges opened 1 year ago

jmverges commented 1 year ago

This needs recursivity https://github.com/kirschbaum-development/nova-inline-relationship/blob/b2ef5d02bc6502972692e2e6717598edf2ff88c6/src/Observers/NovaInlineRelationshipObserver.php#L98

a Panel could have inside a DependencyPanel or any other 3rd party stuff. Locally I just did

            ->flatMap(function ($value) {
                return Integrate::fields($value);
            })
            ->flatMap(function ($value) {
                return Integrate::fields($value);
            })

and I got it working