diff --git a/models/sidebarEntry.ts b/models/sidebarEntry.ts index de2fb32..7b441b2 100644 --- a/models/sidebarEntry.ts +++ b/models/sidebarEntry.ts @@ -13,7 +13,7 @@ export enum Color { } export interface ISidebarItem { - color: Color; + color: Color | string; url: string; linkTitle: string; index: number; @@ -22,7 +22,6 @@ export interface ISidebarItem { const SISchema = new mongoose.Schema({ color: { type: String, - enum: Object.values(Color), }, url: { type: String,