mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix entity form fields regression
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"bin": "./dist/cli/index.js",
|
||||
"version": "0.6.0-rc.7",
|
||||
"version": "0.6.0-rc.10",
|
||||
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, Remix, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
|
||||
"homepage": "https://bknd.io",
|
||||
"repository": {
|
||||
|
||||
@@ -8,7 +8,14 @@ import { isDebug } from "core";
|
||||
import type { Entity } from "data";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { useRef, useState } from "react";
|
||||
import { TbCirclesRelation, TbDots, TbPhoto, TbPlus, TbSitemap } from "react-icons/tb";
|
||||
import {
|
||||
TbCirclesRelation,
|
||||
TbDatabasePlus,
|
||||
TbDots,
|
||||
TbPhoto,
|
||||
TbPlus,
|
||||
TbSitemap
|
||||
} from "react-icons/tb";
|
||||
import { useBkndData } from "ui/client/schema/data/use-bknd-data";
|
||||
import { Button } from "ui/components/buttons/Button";
|
||||
import { IconButton } from "ui/components/buttons/IconButton";
|
||||
@@ -79,6 +86,12 @@ export function DataSchemaEntity({ params }) {
|
||||
icon: TbPhoto,
|
||||
label: "Add media",
|
||||
onClick: () => $data.modals.createMedia(entity.name)
|
||||
},
|
||||
() => <div className="h-px my-1 w-full bg-primary/5" />,
|
||||
{
|
||||
icon: TbDatabasePlus,
|
||||
label: "Create Entity",
|
||||
onClick: () => $data.modals.createEntity()
|
||||
}
|
||||
]}
|
||||
position="bottom-end"
|
||||
|
||||
@@ -225,7 +225,7 @@ const SelectType = ({
|
||||
IconLeft={type.icon}
|
||||
variant="ghost"
|
||||
onClick={() => {
|
||||
if (type.addable) {
|
||||
if (type.addable !== false) {
|
||||
onSelect(type.type);
|
||||
} else {
|
||||
type.onClick?.();
|
||||
|
||||
Reference in New Issue
Block a user