Fix rich text editor bug at page creation (#994)

This commit is contained in:
Krzysztof Wolski 2021-03-02 11:24:25 +01:00 committed by GitHub
parent 4e99c7bcdf
commit ad0d723a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,7 +122,7 @@ function usePageForm(
title: page?.title || ""
});
const [content, changeContent] = useRichText({
initial: page?.content,
initial: pageExists ? page?.content : null,
triggerChange
});