jqh 4 年之前
父節點
當前提交
8295b6c08d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
             }