release: v4.0.4

This commit is contained in:
Amruth Pillai
2024-01-19 10:04:23 +01:00
parent 643348046f
commit 8bca7f5390
6 changed files with 2627 additions and 2897 deletions

View File

@ -37,13 +37,13 @@ export const BuilderLayout = () => {
if (isDesktop) {
return (
<div className="relative h-full w-full overflow-hidden">
<div className="relative size-full overflow-hidden">
<PanelGroup direction="horizontal">
<Panel
minSizePixels={48}
maxSizePercentage={45}
defaultSizePercentage={30}
onResize={({ sizePercentage }) => leftSetSize(sizePercentage)}
minSize={25}
maxSize={45}
defaultSize={30}
onResize={leftSetSize}
className={cn("z-10 bg-background", !leftHandle.isDragging && "transition-[flex]")}
>
<LeftSidebar />
@ -60,10 +60,10 @@ export const BuilderLayout = () => {
onDragging={rightHandle.setDragging}
/>
<Panel
minSizePixels={48}
maxSizePercentage={45}
defaultSizePercentage={30}
onResize={({ sizePercentage }) => rightSetSize(sizePercentage)}
minSize={25}
maxSize={45}
defaultSize={30}
onResize={rightSetSize}
className={cn("z-10 bg-background", !rightHandle.isDragging && "transition-[flex]")}
>
<RightSidebar />

View File

@ -63,9 +63,10 @@ export const SectionDialog = <T extends SectionItem>({
if (!section) return;
if (isCreate || isDuplicate) {
if (pendingKeyword && values.keywords) {
if (pendingKeyword && "keywords" in values) {
values.keywords.push(pendingKeyword);
}
setValue(
`sections.${id}.items`,
produce(section.items, (draft: T[]): void => {
@ -77,7 +78,7 @@ export const SectionDialog = <T extends SectionItem>({
if (isUpdate) {
if (!payload.item?.id) return;
if (pendingKeyword && values.keywords) {
if (pendingKeyword && "keywords" in values) {
values.keywords.push(pendingKeyword);
}

View File

@ -16,7 +16,6 @@
"main": "apps/server/src/main.ts",
"tsConfig": "apps/server/tsconfig.app.json",
"assets": ["apps/server/src/assets"],
"isolatedConfig": true,
"webpackConfig": "apps/server/webpack.config.js"
},
"configurations": {