mirror of
https://github.com/array-in-a-matrix/foodie.git
synced 2024-06-16 03:17:02 -04:00
unbookmark
This commit is contained in:
parent
452bd2a703
commit
177f1d1d08
|
@ -47,17 +47,17 @@ export function RecipeListProvider(props) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function unbookmarkCurRecipe() {
|
function unbookmarkCurRecipe(i) {
|
||||||
console.log(
|
console.log(
|
||||||
"bookmarkCurRecipe",
|
"bookmarkCurRecipe",
|
||||||
"https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" +
|
"https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" +
|
||||||
loadedRecipe[curNum].id +
|
loadedRecipe[i].id +
|
||||||
".json"
|
".json"
|
||||||
);
|
);
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
"https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" +
|
"https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" +
|
||||||
loadedRecipe[curNum].id +
|
loadedRecipe[i].id +
|
||||||
".json",
|
".json",
|
||||||
{
|
{
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
|
|
Loading…
Reference in a new issue