fix build errors
This commit is contained in:
parent
c1ba8dcd86
commit
60275447f0
6 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ const backups = ref<AllBackups>({
|
|||
|
||||
function setBackups(newBackups: AllBackups | null) {
|
||||
if (newBackups) {
|
||||
// @ts-ignore
|
||||
set(backups, newBackups);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue