mirror of
https://github.com/array-in-a-matrix/foodie.git
synced 2024-05-23 14:47:22 -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(
|
||||
"bookmarkCurRecipe",
|
||||
"https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" +
|
||||
loadedRecipe[curNum].id +
|
||||
loadedRecipe[i].id +
|
||||
".json"
|
||||
);
|
||||
|
||||
fetch(
|
||||
"https://htv7-96f00-default-rtdb.firebaseio.com/recipe/" +
|
||||
loadedRecipe[curNum].id +
|
||||
loadedRecipe[i].id +
|
||||
".json",
|
||||
{
|
||||
method: "PATCH",
|
||||
|
|
Loading…
Reference in a new issue