Small fix
This commit is contained in:
@@ -12,6 +12,6 @@ type PermissionToRole struct {
|
||||
PermissionResource string `bun:"resource,pk"`
|
||||
RoleID uuid.UUID `bun:"type:uuid,pk"`
|
||||
|
||||
Permission *Permission `bun:"rel:belongs-to,join:resource=resource,action=action"`
|
||||
Permission *Permission `bun:"rel:belongs-to"`
|
||||
Role *Role `bun:"rel:belongs-to,join:role_id=id"`
|
||||
}
|
||||
|
||||
@@ -136,7 +136,6 @@ function RoleCard({ role, onDelete, permissions }: RoleCardProps) {
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
{Object.entries(permissions).map(([res, actions]) => {
|
||||
console.log(role.permissions);
|
||||
return (
|
||||
<ResourceSection
|
||||
key={res}
|
||||
|
||||
@@ -24,6 +24,10 @@ export default function YouTubeEmbed({
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
width: width === "full" ? "100%" : `${width}px`,
|
||||
height: height === "full" ? "100%" : `${height}px`,
|
||||
}}
|
||||
className={`relative w-${width === "full" ? width : "[" + width + "px]"} h-${height === "full" ? height : "[" + height + "px]"} cursor-pointer`}
|
||||
onClick={_loadIframe}
|
||||
>
|
||||
|
||||
@@ -8,6 +8,9 @@ const apiUrl =
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
output: "standalone",
|
||||
compiler: {
|
||||
removeConsole: process.env.NODE_ENV === "production",
|
||||
},
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user