fix: Unneccessary requests made on share links

This commit is contained in:
Tom Moor
2022-08-27 20:45:07 +02:00
parent 3cc3cd8cf8
commit 6fc1cbc0ce
3 changed files with 12 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ function Editor(props: Props, ref: React.RefObject<SharedEditor> | null) {
const { documents } = useStores();
const { showToast } = useToasts();
const dictionary = useDictionary();
const embeds = useEmbeds();
const embeds = useEmbeds(!shareId);
const [
activeLinkEvent,
setActiveLinkEvent,