Changes: * Replaced `let current_url = get_current_url();` with `let current_url = Rc::new(get_current_url());` to share the current URL between closures. * Wrapped `add_property` and `update_item` functions in Arc to share them between closures. * Updated `save_item_to_db` function to take `current_url` as an argument and use it to construct the ItemToSend struct. * Updated `fetch_property_labels` function to use the `property_ids` vector instead of a single property ID. * Updated `fetch_item_properties` function to use the `wikidata_id` parameter instead of a hardcoded value. * Updated `WikidataResponse` struct to use a `Vec<WikidataSuggestion>` instead of a single `WikidataSuggestion`. |
||
---|---|---|
.. | ||
editable_cell.rs | ||
items_list.rs | ||
mod.rs |