chore: 收紧管理端 lint 配置与类型断言
This commit is contained in:
1 parent
ed2e3bd715
commit
2712517e64
3 files changed
+3
-2
No files matched your search
@@ -12,7 +12,7 @@ export function BrandPage() {
|
||||
const brand = useQuery({ queryKey: ["admin-brand"], queryFn: () => client.getAdminBrand() });
|
||||
const template = useQuery({
|
||||
queryKey: ["template", brand.data?.templateKey],
|
||||
queryFn: () => client.getPublicTemplate(brand.data!.templateKey as "personal" | "food"),
|
||||
queryFn: () => client.getPublicTemplate(brand.data!.templateKey),
|
||||
enabled: Boolean(brand.data?.templateKey),
|
||||
});
|
||||
const save = useMutation({
|
||||
|
||||
@@ -80,7 +80,7 @@ export function ServicesPage() {
|
||||
const beginOffering = (item?: Offering) => {
|
||||
setEditingOffering(item ?? null);
|
||||
setOfferingOpen(true);
|
||||
const config = (item?.config ?? {}) as Record<string, unknown>;
|
||||
const config = item?.config ?? {};
|
||||
offeringForm.setFieldsValue(
|
||||
item
|
||||
? {
|
||||
|
||||
Reference in new issue
Block a user