Removed debug logging from StoryEditorClient and added autoFocus to prom
This commit is contained in:
@@ -82,16 +82,13 @@ export function StoryEditorClient() {
|
||||
}
|
||||
|
||||
const result = await response.json();
|
||||
console.log("Editor: full API response:", result);
|
||||
|
||||
|
||||
const {
|
||||
story: storyData,
|
||||
pages: pagesData,
|
||||
isOwner: ownerStatus,
|
||||
} = result;
|
||||
|
||||
console.log("Editor: received story data:", storyData);
|
||||
|
||||
|
||||
setStory(storyData);
|
||||
setIsOwner(ownerStatus ?? false); // Default to false if undefined
|
||||
setPages(
|
||||
|
||||
@@ -67,6 +67,8 @@ export function GeneratePageModal({
|
||||
setShowPreview(null);
|
||||
setIsGenerating(false);
|
||||
|
||||
|
||||
|
||||
// Initialize characters list with existing ones
|
||||
const existingItems: CharacterItem[] = existingCharacters.map((url) => ({
|
||||
url,
|
||||
@@ -326,6 +328,7 @@ export function GeneratePageModal({
|
||||
</div>
|
||||
|
||||
<textarea
|
||||
autoFocus
|
||||
value={prompt}
|
||||
onChange={(e) => setPrompt(e.target.value)}
|
||||
placeholder={
|
||||
|
||||
Reference in New Issue
Block a user