mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-27 15:37:03 +00:00
feat: integrate sonner for toast notifications and update project metadata
This commit is contained in:
@@ -67,7 +67,10 @@ export const objectsApi = {
|
||||
|
||||
// Filter mock objects by prefix
|
||||
if (!_prefix) {
|
||||
return mockObjectsFlat.filter(obj => !obj.key.includes('/'));
|
||||
return mockObjectsFlat.filter(obj => {
|
||||
// Include root-level files (no slash) and root-level folders (single slash at end)
|
||||
return !obj.key.includes('/') || (obj.key.endsWith('/') && !obj.key.slice(0, -1).includes('/'));
|
||||
});
|
||||
}
|
||||
|
||||
// Get all objects with this prefix, but only direct children
|
||||
|
||||
Reference in New Issue
Block a user