File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,12 @@ public function resetBulk(): void
67
67
/**
68
68
* @return Builder|Relation
69
69
*/
70
- public function selectedRowsQuery ()
70
+ public function selectedRowsQuery (): Relation | Builder
71
71
{
72
- return (clone $ this ->rowsQuery ())
73
- ->unless ($ this ->selectAll , fn ($ query ) => $ query ->whereIn ($ query ->qualifyColumn ($ this ->primaryKey ), $ this ->selected ));
72
+ return $ this ->query ()->unless (
73
+ $ this ->selectAll ,
74
+ fn ($ query ) => $ query ->whereIn ($ query ->qualifyColumn ($ this ->primaryKey ), $ this ->selected )
75
+ );
74
76
}
75
77
76
78
/**
@@ -83,7 +85,7 @@ public function getSelectedRowsQueryProperty()
83
85
84
86
public function selectedKeys (): array
85
87
{
86
- return $ this ->selectedRowsQuery ()->pluck ($ this ->rowsQuery ()->qualifyColumn ($ this ->primaryKey ))->toArray ();
88
+ return $ this ->selectedRowsQuery ()->pluck ($ this ->query ()->qualifyColumn ($ this ->primaryKey ))->toArray ();
87
89
}
88
90
89
91
public function getSelectedKeysProperty (): array
You can’t perform that action at this time.
0 commit comments