mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
fix: show '+ Add request' when only transient items exist (#7361)
This commit is contained in:
@@ -69,7 +69,8 @@ const Collection = ({ collection, searchText }) => {
|
||||
const dispatch = useDispatch();
|
||||
const isLoading = collection.isLoading;
|
||||
const collectionRef = useRef(null);
|
||||
const itemCount = collection.items?.length || 0;
|
||||
// Only count persisted items; transients don't affect empty state
|
||||
const itemCount = collection.items?.filter((i) => !i.isTransient).length || 0;
|
||||
|
||||
const isCollectionFocused = useSelector(isTabForItemActive({ itemUid: collection.uid }));
|
||||
const { hasCopiedItems } = useSelector((state) => state.app.clipboard);
|
||||
|
||||
Reference in New Issue
Block a user