Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update components/editor/index.tsx
Browse files
components/editor/index.tsx
CHANGED
|
@@ -27,7 +27,7 @@ import { isTheSameHtml } from "@/lib/compare-html-diff";
|
|
| 27 |
export const AppEditor = ({ project }: { project?: Project | null }) => {
|
| 28 |
const [htmlStorage, , removeHtmlStorage] = useLocalStorage("html_content");
|
| 29 |
const [, copyToClipboard] = useCopyToClipboard();
|
| 30 |
-
const { html, setHtml, htmlHistory, setHtmlHistory,
|
| 31 |
useEditor(project?.html ?? (htmlStorage as string) ?? defaultHTML);
|
| 32 |
// get query params from URL
|
| 33 |
const searchParams = useSearchParams();
|
|
|
|
| 27 |
export const AppEditor = ({ project }: { project?: Project | null }) => {
|
| 28 |
const [htmlStorage, , removeHtmlStorage] = useLocalStorage("html_content");
|
| 29 |
const [, copyToClipboard] = useCopyToClipboard();
|
| 30 |
+
const { html, setHtml, htmlHistory, setHtmlHistory, setPrompts } =
|
| 31 |
useEditor(project?.html ?? (htmlStorage as string) ?? defaultHTML);
|
| 32 |
// get query params from URL
|
| 33 |
const searchParams = useSearchParams();
|