solutionforest / filament-access-management

Extends on Laravel-permission
https://spatie.be/docs/laravel-permission/v5/introduction
MIT License
44 stars 14 forks source link

Not able to edit the menu. On editing a menu item showing BadMethodCallException in the modal #14

Open mthabsheer opened 4 months ago

mthabsheer commented 4 months ago

While trying to edit the menu item getting below error:

Method SolutionForest\FilamentTree\Actions\EditAction::shouldOpenModal does not exist.

error

The error dissappears when I commented out the selected lines and uncomment the existing commented lines in the file located in the below path.

vendor\solution-forest\filament-tree\src\Concern\HasActions.php

I kept the below lines commented itself

// if ($action->shouldOpenModal()) { // return false; // }

Please see the code snippet below

error2

I am using this plugin for first time. Please guide if there is any thing to be done to make this function definition available in the code.