Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix !i

Roman Pominove10726085515
diff --git a/apps/designer/app/canvas/shared/use-measure-instance.ts b/apps/designer/app/canvas/shared/use-measure-instance.ts
index bf4672f512..3f0bc3ee70 100644
--- a/apps/designer/app/canvas/shared/use-measure-instance.ts
+++ b/apps/designer/app/canvas/shared/use-measure-instance.ts
@@ -4,7 +4,7 @@ import { type PubsubMap, useSubscribeAll } from "~/shared/pubsub";
const useSubscribeTreeChange = (onChange: () => void, isEnabled: boolean) => {
const callback = useMemo(() => {
- if (!isEnabled) {
+ if (isEnabled === false) {
return () => null;
}
return (type: keyof PubsubMap) => {
diff --git a/apps/designer/app/designer/features/style-panel/sections/layout/shared/lock.tsx b/apps/designer/app/designer/features/style-panel/sections/layout/shared/lock.tsx
index f1754c79cc..d8f8f0821b 100644
--- a/apps/designer/app/designer/features/style-panel/sections/layout/shared/lock.tsx
+++ b/apps/designer/app/designer/features/style-panel/sections/layout/shared/lock.tsx
@@ -24,7 +24,7 @@ export const Lock = ({
const [isPaired, setIsPaired] = useState(aVal === bVal);
useEffect(() => {
- if (!isPaired) return;
+ if (isPaired === false) return;
if (aVal === bVal) return;
batchUpdate.setProperty(aKey)(aVal);
batchUpdate.setProperty(bKey)(aVal);
diff --git a/bin/update-ts-project-references.ts b/bin/update-ts-project-references.ts
index 565f2f72d4..2de2ac32cd 100644
--- a/bin/update-ts-project-references.ts
+++ b/bin/update-ts-project-references.ts
@@ -106,7 +106,7 @@ const updateTsConfig = async (
const previousProp = ast.properties[referencesPropIndex - 1];
const indent = formatted.match(/.*{\n(\s+)[^\s]/)?.[1];
- if (!indent) {
+ if (indent === undefined) {
throw new Error(`Couldn't determine indentation`);
}