Skip to content

Commit 86ccbe1

Browse files
authored
Fix editUrl route
1 parent 3a29fcd commit 86ccbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getIndex($group = null)
4747
->with('group', $group)
4848
->with('numTranslations', $numTranslations)
4949
->with('numChanged', $numChanged)
50-
->with('editUrl', action('\Barryvdh\TranslationManager\Controller@postEdit', [$group]))
50+
->with('editUrl', $group ? action('\Barryvdh\TranslationManager\Controller@postEdit', [$group]) : null)
5151
->with('deleteEnabled', $this->manager->getConfig('delete_enabled'));
5252
}
5353

0 commit comments

Comments
 (0)