fix controllers
This commit is contained in:
1 parent
9b5f124081
commit
584fe7eb95
2 files changed
+3
-4
No files matched your search
@@ -62,18 +62,18 @@ class RecordController extends Controller
|
||||
$limit = 30;
|
||||
$records = [];
|
||||
$graphArray = null;
|
||||
|
||||
$graph = $this->query
|
||||
->filter($arguments)
|
||||
->limit($limit)
|
||||
->status(explode(",", $arguments["status_in"]))
|
||||
->skip($skip)
|
||||
->sort($sort)
|
||||
->childrenFields($schema->visible)
|
||||
->childrenFields($schema?->visible ?? [])
|
||||
->childrenDepth(1)
|
||||
->parentsDepth(0)
|
||||
->runWithCount();
|
||||
|
||||
|
||||
$records = $graph->getRootRecords()->toArray();
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ class RecordController extends Controller
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
$data["inModal"] = false;
|
||||
return $this->svelte->render(
|
||||
layout: "channel",
|
||||
|
||||
Reference in new issue
Block a user