Skip to content
Snippets Groups Projects
Commit f799ddb7 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: only containers should be readonly

parent e48e675c
No related branches found
No related tags found
No related merge requests found
import { defineStore } from 'pinia'
import { computed, readonly, ref, Ref } from 'vue'
import { computed, readonly, ref, Ref, shallowReadonly } from 'vue'
import { merge } from 'lodash'
type ID = number | string
......@@ -127,8 +127,8 @@ export function createExtendableAPI<T extends APIObject>(
return {
base: {
error: readonly(error),
items: readonly(items),
itemMap: readonly(itemMap),
items: shallowReadonly(items),
itemMap: shallowReadonly(itemMap),
reset,
},
createRequest,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment