fix(git): handle empty repositories gracefully and show empty state in UI
This commit is contained in:
@@ -364,6 +364,9 @@ const FileBrowser = ({
|
||||
<Icon name="folder" size="sm" /> ..
|
||||
</button>
|
||||
)}
|
||||
{entries.length === 0 && (
|
||||
<p className="muted">No files in this repository yet.</p>
|
||||
)}
|
||||
{entries.map((entry) => {
|
||||
const fileStatus = entry.type === "file" ? getFileStatus(entry.path) : null;
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user