jqh %!s(int64=4) %!d(string=hai) anos
pai
achega
8295b6c08d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Grid/Concerns/HasTree.php

+ 1 - 1
src/Grid/Concerns/HasTree.php

@@ -98,7 +98,7 @@ trait HasTree
             if (
                 $query['method'] === 'where'
                 && $query['arguments']
-                && $query['arguments'][0] === $this->repository->getParentColumn()
+                && $query['arguments'][0] === optional($this->repository)->getParentColumn()
             ) {
                 return false;
             }