mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
fix new note not created from inside a topic if a note is already opened
This commit is contained in:
@@ -82,7 +82,7 @@ export const Home = ({navigation}) => {
|
||||
if (!DDS.isTab) {
|
||||
if (getNote()) {
|
||||
eSendEvent(eOnLoadNote, {type: 'new'});
|
||||
editing.currentlyEditing;
|
||||
editing.currentlyEditing = true;
|
||||
editing.movedAway = false;
|
||||
}
|
||||
tabBarRef.current?.goToPage(1);
|
||||
|
||||
@@ -24,6 +24,7 @@ import {
|
||||
} from '../../utils/Events';
|
||||
import {openLinkInBrowser} from '../../utils/functions';
|
||||
import {tabBarRef} from '../../utils/Refs';
|
||||
import { getNote } from '../Editor/Functions';
|
||||
|
||||
const getNotes = params => {
|
||||
if (!params) return [];
|
||||
@@ -165,6 +166,11 @@ export const Notes = ({route, navigation}) => {
|
||||
}
|
||||
setActionAfterFirstSave();
|
||||
if (!DDS.isTab) {
|
||||
if (getNote()) {
|
||||
eSendEvent(eOnLoadNote, {type: 'new'});
|
||||
editing.currentlyEditing = true;
|
||||
editing.movedAway = false;
|
||||
}
|
||||
tabBarRef.current?.goToPage(1);
|
||||
} else {
|
||||
eSendEvent(eOnLoadNote, {type: 'new'});
|
||||
|
||||
Reference in New Issue
Block a user