Avoid failure when cloning proxied object

This commit is contained in:
Eli Ribble 2026-04-02 15:32:48 +00:00
parent 9574ed4812
commit ea231fb0cc
No known key found for this signature in database

View file

@ -256,7 +256,7 @@ pre {
</template>
<script setup lang="ts">
import { onMounted, ref } from "vue";
import { onMounted, ref, toRaw } from "vue";
import { useSessionStore } from "@/store/session";
import { useUserStore } from "@/store/user";
import { User } from "@/types";
@ -459,7 +459,7 @@ onMounted(() => {
display_name: u.display_name,
is_active: u.is_active,
role: u.role,
tags: structuredClone(u.tags),
tags: structuredClone(toRaw(u.tags)),
username: u.username,
};
console.log("User set to", u);