Clear entry detailed on workspace change (#1045)

This commit is contained in:
lirazyehezkel 2022-04-26 15:40:42 +03:00 committed by GitHub
parent b5c665b602
commit ee8dce4466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,8 +110,8 @@ export const EntryDetailed = () => {
const [entryData, setEntryData] = useState(null); const [entryData, setEntryData] = useState(null);
useEffect(() => { useEffect(() => {
if (!focusedEntryId) return;
setEntryData(null); setEntryData(null);
if (!focusedEntryId) return;
setIsLoading(true); setIsLoading(true);
(async () => { (async () => {
try { try {