[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-03-10 06:32:56 +00:00
committed by GitHub
parent f5d18d6f9b
commit a6999b1cf2
3 changed files with 13 additions and 14 deletions

View File

@@ -429,8 +429,7 @@ const MENU: Menu = {
url: "/dashboard/settings/whitelabeling",
icon: Palette,
// Only enabled for owners in non-cloud environments (enterprise)
isEnabled: ({ auth, isCloud }) =>
!!(auth?.role === "owner" && !isCloud),
isEnabled: ({ auth, isCloud }) => !!(auth?.role === "owner" && !isCloud),
},
],
@@ -460,7 +459,13 @@ function createMenuForAuthUser(opts: {
supportUrl?: string | null;
} | null;
}): Menu {
const filterEnabled = <T extends { isEnabled?: (o: { auth?: AuthQueryOutput; isCloud: boolean }) => boolean }>(items: readonly T[]): T[] =>
const filterEnabled = <
T extends {
isEnabled?: (o: { auth?: AuthQueryOutput; isCloud: boolean }) => boolean;
},
>(
items: readonly T[],
): T[] =>
items.filter((item) =>
!item.isEnabled
? true

View File

@@ -164,10 +164,10 @@ export const CodeEditor = ({
: language === "json"
? json()
: language === "css"
? css()
: language === "shell"
? StreamLanguage.define(shell)
: StreamLanguage.define(properties),
? css()
: language === "shell"
? StreamLanguage.define(shell)
: StreamLanguage.define(properties),
props.lineWrapping ? EditorView.lineWrapping : [],
language === "yaml"
? autocompletion({

View File

@@ -1,11 +1,5 @@
import { relations } from "drizzle-orm";
import {
boolean,
jsonb,
pgTable,
text,
timestamp,
} from "drizzle-orm/pg-core";
import { boolean, jsonb, pgTable, text, timestamp } from "drizzle-orm/pg-core";
import { createInsertSchema } from "drizzle-zod";
import { nanoid } from "nanoid";
import { z } from "zod";