Fix issue with selecting decks
also remove alert on start
This commit is contained in:
parent
a3d67dfefb
commit
e634dfee2a
|
@ -58,7 +58,7 @@ export const addNote = async words => {
|
|||
const ankiData = await getAnkiData();
|
||||
await console.log(ankiData);
|
||||
const template = await ankiData.fieldList;
|
||||
const deckId = store.getState().anki.selectedDeck.id;
|
||||
const deckId = store.getState().anki.selectedDeck.deck.id;
|
||||
const modelId = await ankiData.modelId;
|
||||
console.log(template, deckId, modelId);
|
||||
const settings = {
|
||||
|
|
|
@ -23,7 +23,7 @@ const StartScreen = props => {
|
|||
props.getSavedData();
|
||||
props.checkAnkiLanModelForExisting(props.modelName, props.modelList);
|
||||
} else {
|
||||
alert('Troubles');
|
||||
console.log('Troubles with permissions');
|
||||
props.requestAnkiPermission();
|
||||
}
|
||||
}, []);
|
||||
|
|
Loading…
Reference in a new issue