Skip to content

Commit

Permalink
Fix console warning about shallowRef
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jan 8, 2025
1 parent 4a57140 commit b03e64d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function save() {
} else {
await updateSchemeLabel(
route.params.id as string,
formValue.value.tileid as string,
formValue.value.tileid,
formValue.value,
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { onBeforeUpdate, ref, watch } from "vue";
import { onBeforeUpdate, ref, shallowRef, watch } from "vue";
import { useGettext } from "vue3-gettext";
import Button from "primevue/button";
import SchemeNamespace from "@/arches_lingo/components/scheme/report/SchemeNamespace.vue";
Expand All @@ -23,7 +23,7 @@ type SchemeComponent = {
};
const childRefs = ref<Array<SectionTypes>>([]);
const currentEditor = ref<SchemeComponent>();
const currentEditor = shallowRef<SchemeComponent>();
const schemeComponents = [
{
component: SchemeLabel,
Expand Down
1 change: 1 addition & 0 deletions arches_lingo/utils/query_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class JsonbArrayElements(Func):
"""https://forum.djangoproject.com/t/django-4-2-behavior-change-when-using-arrayagg-on-unnested-arrayfield-postgresql-specific/21547/5"""

arity = 1
# TODO: Django 5.2/Arches 8.0: use set_returning = True
contains_subquery = True
function = "JSONB_ARRAY_ELEMENTS"

Expand Down

0 comments on commit b03e64d

Please sign in to comment.