File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,10 +142,6 @@ protected function configureTables(): void
142142 });
143143
144144 Table::configureUsing (function (Table $ table ) {
145- if (! $ table ->getModel ()) {
146- return ;
147- }
148-
149145 $ format = function (string $ class ): string {
150146 return Str::of ($ class )
151147 ->classBasename ()
@@ -156,17 +152,17 @@ protected function configureTables(): void
156152
157153 $ table
158154 ->emptyStateIcon (function (Table $ table ) {
159- if (! $ table ->hasAlteredQuery ()) {
155+ if (filled ( $ table -> getModel ()) && ! $ table ->hasAlteredQuery ()) {
160156 return Heroicon::OutlinedClipboardDocument;
161157 }
162158 })
163159 ->emptyStateHeading (function (Table $ table ) use ($ format ) {
164- if (! $ table ->hasAlteredQuery ()) {
160+ if (filled ( $ table -> getModel ()) && ! $ table ->hasAlteredQuery ()) {
165161 return __ ($ format ($ table ->getModel ()) . '.empty.title ' );
166162 }
167163 })
168164 ->emptyStateDescription (function (Table $ table ) use ($ format ) {
169- if (! $ table ->hasAlteredQuery ()) {
165+ if (filled ( $ table -> getModel ()) && ! $ table ->hasAlteredQuery ()) {
170166 return __ ($ format ($ table ->getModel ()) . '.empty.description ' );
171167 }
172168 });
You can’t perform that action at this time.
0 commit comments