Skip to content

Commit

Permalink
fix: some bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsoni-harsh committed Feb 5, 2025
1 parent 592ae87 commit c702ab5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/sanity/schemaTypes/academics/Admission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ export const linksStructure = defineType({
{
type: 'object',
fields: [
{
name: 'id',
title: 'ID',
type: 'number',
},
{
name: 'link',
title: 'Link',
Expand Down
2 changes: 1 addition & 1 deletion src/sanity/schemaTypes/researchDevelopment/Research.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineField, defineType } from 'sanity';

export const research = defineType({
title: 'Research Profiles',
name: 'profiles',
name: 'researchProfiles',
type: 'document',
fields: [
defineField({
Expand Down
2 changes: 1 addition & 1 deletion src/sanity/schemaTypes/studentLife/Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CalendarIcon } from 'lucide-react';
import { defineField, defineType } from 'sanity';

export const EventInfo = defineType({
name: 'eventInf',
name: 'event',
title: 'Event Information',
type: 'document',
icon: CalendarIcon,
Expand Down
6 changes: 4 additions & 2 deletions src/sanity/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ export const structure: StructureResolver = (S) =>
S.listItem()
.title('Research Profiles')
.child(
S.documentTypeList('profiles').title('Research Profiles')
S.documentTypeList('researchProfiles').title(
'Research Profiles'
)
),
])
),
Expand All @@ -202,7 +204,7 @@ export const structure: StructureResolver = (S) =>
.child(S.documentTypeList('campusData').title('Campus Data')),
S.listItem()
.title('Events')
.child(S.documentTypeList('eventInf').title('Events')),
.child(S.documentTypeList('event').title('Events')),
S.listItem()
.title('Facility')
.child(S.documentTypeList('facility').title('Facility')),
Expand Down

0 comments on commit c702ab5

Please sign in to comment.