mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix project settings detail
This commit is contained in:
@@ -37,14 +37,16 @@ import useCollection from '@/composables/use-collection';
|
||||
import useSettingsStore from '@/stores/settings';
|
||||
import marked from 'marked';
|
||||
import ProjectInfoDrawerDetail from './components/project-info-drawer-detail.vue';
|
||||
import { clone } from 'lodash';
|
||||
|
||||
export default defineComponent({
|
||||
components: { SettingsNavigation, ProjectInfoDrawerDetail },
|
||||
setup() {
|
||||
const settingsStore = useSettingsStore();
|
||||
|
||||
const { fields } = useCollection(ref('directus_settings'));
|
||||
|
||||
const initialValues = settingsStore.formatted;
|
||||
const initialValues = clone(settingsStore.state.settings);
|
||||
|
||||
const edits = ref<{ [key: string]: any } | null>(null);
|
||||
|
||||
|
||||
@@ -68,9 +68,7 @@ export const useFieldsStore = createStore({
|
||||
async hydrate() {
|
||||
const fieldsResponse = await api.get(`/fields`);
|
||||
|
||||
const fields: FieldRaw[] = fieldsResponse.data.data.filter(
|
||||
({ collection }: FieldRaw) => collection !== 'directus_settings'
|
||||
);
|
||||
const fields: FieldRaw[] = fieldsResponse.data.data;
|
||||
|
||||
/**
|
||||
* @NOTE
|
||||
|
||||
Reference in New Issue
Block a user