mirror of
https://github.com/git-touch/git-touch
synced 2025-01-31 08:04:51 +01:00
fix: use default branch
This commit is contained in:
parent
bf3f077efa
commit
a2cb2fb9e9
@ -22,7 +22,7 @@ class ObjectScreen extends StatelessWidget {
|
||||
ObjectScreen({
|
||||
@required this.owner,
|
||||
@required this.name,
|
||||
this.branch = 'master',
|
||||
@required this.branch,
|
||||
this.paths = const [],
|
||||
this.type = 'tree',
|
||||
});
|
||||
|
@ -240,7 +240,11 @@ class RepoScreen extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
screenBuilder: (_) => ObjectScreen(owner: owner, name: name),
|
||||
screenBuilder: (_) => ObjectScreen(
|
||||
owner: owner,
|
||||
name: name,
|
||||
branch: payload['defaultBranchRef']['name'], // FIXME: null
|
||||
),
|
||||
),
|
||||
TableViewItem(
|
||||
leftWidget: Icon(Octicons.issue_opened, size: 20),
|
||||
|
Loading…
x
Reference in New Issue
Block a user