1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 12:05:21 +02:00

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 { share, isSupported: shareIsSupported } = useShare();
const source = ref(""); const { copy } = useClipboard();
const { copy } = useClipboard({ source });
async function handleShareEvent() { async function handleShareEvent() {
if (shareIsSupported) { if (shareIsSupported) {

View file

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

View file

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

View file

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

View file

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

View file

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