mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
Fix empty shard ID on repos page (#43704)
Previously, this resolver would not return `null` but an empty string. This fixes it so that the "Not assigned" banner is properly shown in the UI.
This commit is contained in:
parent
e6ac5f3117
commit
a6e72a5983
@ -181,7 +181,11 @@ func (r *repositoryMirrorInfoResolver) Shard(ctx context.Context) (*string, erro
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &info.ShardID, err
|
||||
if info.ShardID == "" {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return &info.ShardID, nil
|
||||
}
|
||||
|
||||
func (r *repositoryMirrorInfoResolver) UpdateSchedule(ctx context.Context) (*updateScheduleResolver, error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user