File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
apps/renderer/src/modules/entry-column Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ function sortEntriesIdByEntryInsertedAt(entries: string[]) {
278
278
)
279
279
}
280
280
281
- const useFetchEntryContentByStream = ( remoteEntryIds : string [ ] ) => {
281
+ const useFetchEntryContentByStream = ( remoteEntryIds ? : string [ ] ) => {
282
282
const { mutate : updateEntryContent } = useMutation ( {
283
283
mutationKey : [ "stream-entry-content" , remoteEntryIds ] ,
284
284
mutationFn : async ( remoteEntryIds : string [ ] ) => {
@@ -296,6 +296,8 @@ const useFetchEntryContentByStream = (remoteEntryIds: string[]) => {
296
296
}
297
297
}
298
298
299
+ if ( nextIds . length === 0 ) return
300
+
299
301
const readStream = async ( ) => {
300
302
const response = await apiFetch ( apiClient . entries . stream . $url ( ) . toString ( ) , {
301
303
method : "post" ,
You can’t perform that action at this time.
0 commit comments