Skip to content

Commit 544edf2

Browse files
Adam Goughwaleed
authored andcommitted
files fixed for bun run lint
1 parent bf59e9b commit 544edf2

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/api-keys/api-keys.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ export function ApiKeys({ onOpenChange, registerCloseHandler }: ApiKeysProps) {
657657
if (createError) setCreateError(null)
658658
}}
659659
disabled={!allowPersonalApiKeys}
660-
className='h-8 data-[variant=outline]:border-border data-[variant=outline]:bg-background data-[variant=outline]:text-foreground data-[variant=outline]:hover:bg-muted dark:data-[variant=outline]:border-border dark:data-[variant=outline]:bg-background dark:data-[variant=outline]:text-foreground dark:data-[variant=outline]:hover:bg-muted/80 disabled:opacity-60 disabled:cursor-not-allowed'
660+
className='h-8 disabled:cursor-not-allowed disabled:opacity-60 data-[variant=outline]:border-border data-[variant=outline]:bg-background data-[variant=outline]:text-foreground data-[variant=outline]:hover:bg-muted dark:data-[variant=outline]:border-border dark:data-[variant=outline]:bg-background dark:data-[variant=outline]:text-foreground dark:data-[variant=outline]:hover:bg-muted/80'
661661
>
662662
Personal
663663
</Button>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/subscription/subscription.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ export function Subscription({ onOpenChange }: SubscriptionProps) {
672672
</SelectTrigger>
673673
<SelectContent align='start'>
674674
<SelectGroup>
675-
<SelectLabel className='px-3 py-1 text-muted-foreground text-[11px] uppercase'>
675+
<SelectLabel className='px-3 py-1 text-[11px] text-muted-foreground uppercase'>
676676
Workspace admins
677677
</SelectLabel>
678678
{workspaceAdmins.map((admin) => (

apps/sim/tools/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,12 @@ async function handleInternalRequest(
472472
// For custom tools, validate parameters on the client side before sending
473473
if (toolId.startsWith('custom_') && tool.request.body) {
474474
const requestBody = tool.request.body(params)
475-
if (requestBody.schema && requestBody.params) {
475+
if (
476+
typeof requestBody === 'object' &&
477+
requestBody !== null &&
478+
'schema' in requestBody &&
479+
'params' in requestBody
480+
) {
476481
try {
477482
validateClientSideParams(requestBody.params, requestBody.schema)
478483
} catch (validationError) {

0 commit comments

Comments
 (0)