Skip to content

Commit 126dc26

Browse files
authored
fix: show no tools available when no tools available (#7021)
1 parent f304a63 commit 126dc26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gui/src/components/mainInput/Lump/sections/tool-policies/ToolPoliciesSection.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ export const ToolPoliciesSection = () => {
6565
</Alert>
6666
</div>
6767
)}
68+
{toolsByGroup.length === 0 && (
69+
<span className="text-description text-sm italic">
70+
No tools available
71+
</span>
72+
)}
6873
{toolsByGroup.map(([groupName, tools]) => {
6974
const isGroupEnabled =
7075
!allToolsOff && toolGroupSettings[groupName] !== "exclude";

0 commit comments

Comments
 (0)