fix build errors

This commit is contained in:
hay-kot 2021-11-06 15:03:12 -08:00
parent c1ba8dcd86
commit 60275447f0
6 changed files with 6 additions and 6 deletions

View file

@ -246,8 +246,7 @@ export default defineComponent({
const { share, isSupported: shareIsSupported } = useShare();
const source = ref("");
const { copy } = useClipboard({ source });
const { copy } = useClipboard();
async function handleShareEvent() {
if (shareIsSupported) {

View file

@ -100,6 +100,7 @@ export const useRecipes = (all = false, fetchRecipes = true) => {
async function refreshRecipes() {
const { data } = await api.recipes.getAll(start, end);
if (data) {
// @ts-ignore
set(recipes, data);
}
}

View file

@ -11,6 +11,7 @@ const backups = ref<AllBackups>({
function setBackups(newBackups: AllBackups | null) {
if (newBackups) {
// @ts-ignore
set(backups, newBackups);
}
}

View file

@ -147,8 +147,8 @@ export default defineComponent({
// for the parser. For now we'll leave it like this
properties.comment.value = data.ingredient.note || "";
properties.quantity.value = data.ingredient.quantity || "";
properties.unit.value = data.ingredient.unit.name || "";
properties.food.value = data.ingredient.food.name || "";
properties.unit.value = data.ingredient?.unit?.name || "";
properties.food.value = data.ingredient?.food?.name || "";
for (const property in properties) {
const color = getColor(property);

View file

@ -48,7 +48,6 @@ def export_database(
tag=data.tag,
templates=data.templates,
export_recipes=data.options.recipes,
export_settings=data.options.settings,
export_users=data.options.users,
export_groups=data.options.groups,
export_notifications=data.options.notifications,

View file

@ -106,7 +106,7 @@ def backup_all(
tag=None,
templates=None,
export_recipes=True,
export_settings=True,
export_settings=False,
export_users=True,
export_groups=True,
export_notifications=True,