fix: Update SaveTransientRequestModal empty state when collections don't exist (#7955)

This commit is contained in:
Chirag Chandrashekhar
2026-05-08 16:14:07 +05:30
committed by GitHub
parent 327861b353
commit 0c7bce3320

View File

@@ -547,8 +547,18 @@ const SaveTransientRequest = ({ item: itemProp, collection: collectionProp, isOp
</ul>
) : (
<div className="collection-empty-state">
<p>No collections Yet</p>
<p>No Collections Yet</p>
<p className="collection-empty-state-subtitle">Collections help you organize your requests. Create your first one to save this request.</p>
<Button
type="button"
color="primary"
variant="outline"
icon={<IconFolder size={16} strokeWidth={1.5} />}
onClick={handleShowNewCollection}
className="mt-4"
>
New collection
</Button>
</div>
)}
</div>
@@ -748,7 +758,7 @@ const SaveTransientRequest = ({ item: itemProp, collection: collectionProp, isOp
New Folder
</Button>
)}
{isSelectingCollection && !newCollection.show && (
{isSelectingCollection && !newCollection.show && availableCollections.length > 0 && (
<Button
type="button"
color="primary"