\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\nimport { useExtensions } from \"@directus/extensions-sdk\";\r\nimport { computed } from \"vue\";\r\nimport { Filter } from \"@directus/types\";\r\n\r\nconst props = withDefaults(\r\n defineProps\u003C{\r\n value?: number | string | Record\u003Cstring, any> | null;\r\n collection: string;\r\n field: string;\r\n template?: string | null;\r\n selectMode?: \"auto\" | \"dropdown\" | \"modal\";\r\n disabled?: boolean;\r\n filter?: Filter | null;\r\n enableCreate?: boolean;\r\n enableSelect?: boolean;\r\n }>(),\r\n {\r\n value: null,\r\n selectMode: \"auto\",\r\n disabled: false,\r\n template: null,\r\n filter: null,\r\n enableCreate: true,\r\n enableSelect: true,\r\n }\r\n);\r\n\r\nconst { interfaces } = useExtensions();\r\n\r\nconsole.log({ interfaces });\r\n\r\nconst selectedInterface = interfaces.value.find(\r\n (i) => i.id === \"select-dropdown-m2o\"\r\n);\r\n\r\nif (!selectedInterface) {\r\n throw new Error(\"Interface select-dropdown-m2o not found.\");\r\n}\r\n\r\nconst SelectDropdownM2o = selectedInterface.component;\r\n\r\nconst componentAttrs = computed(() => {\r\n return {\r\n ...props,\r\n };\r\n});\r\n\u003C/script>\r\n```\r\n\r\nI wasn't having this issue literally 2 minutes ago, and all of the sudden without changing anything I was having issues, and the code is minified for some reason, so I am not even able to follow the stack trace.\r\n\r\nIf anyone knows a potential solution, please let me know!\n\n### To Reproduce\n\nTake my code and try to use it inside an extension\n\n### Directus Version\n\nv10.6.1\n\n### Hosting Strategy\n\nSelf-Hosted (Docker Image)",[3105],{"name":3043,"color":3044},19689,"Extending select-dropdown-m2o error: `TypeError: Cannot read properties of undefined (reading 'includes')`","2024-02-01T03:02:50Z","https://github.com/directus/directus/issues/19689",0.6548772,{"description":3112,"labels":3113,"number":3114,"owner":3033,"repository":3033,"state":3046,"title":3115,"updated_at":3116,"url":3117,"score":3118},"### Describe the Bug\n\n\r\nhttps://user-images.githubusercontent.com/6544815/182544405-f3ca8805-a17b-4bf3-b977-723a8541cf9c.mov\r\n\r\n\r\nProblem in stuck value in query with offset\r\n\r\nDirectus cache mode - disabled\r\nDB: Postgres 13\r\nID: Uniq\r\n\r\nTable DDL\r\n\r\n```\r\nCREATE TABLE public.author (\r\n\tid uuid NOT NULL,\r\n\tsort int4 NULL,\r\n\tdate_created timestamptz NULL,\r\n\tdate_updated timestamptz NULL,\r\n\tfirst_name text NULL,\r\n\tlast_name text NULL,\r\n\tmiddle_name text NULL,\r\n\tfull_name text NULL,\r\n\tCONSTRAINT author_full_name_unique UNIQUE (full_name),\r\n\tCONSTRAINT author_pkey PRIMARY KEY (id)\r\n);\r\n```\r\n\r\n \r\n\n\n### To Reproduce\n\nDon't, know how exactly it can be reproduced, I have simple data collections.\n\n### Errors Shown\n\n_No response_\n\n### What version of Directus are you using?\n\n9.14.5\n\n### What version of Node.js are you using?\n\n16.16.0\n\n### What database are you using?\n\nPostgres 13\n\n### What browser are you using?\n\nSafari\n\n### How are you deploying Directus?\n\nDocker",[],14804,"Stuck value with Offset/Page","2024-02-02T09:03:22Z","https://github.com/directus/directus/issues/14804",0.65698653,{"description":3120,"labels":3121,"number":3122,"owner":3033,"repository":3033,"state":3046,"title":3123,"updated_at":3124,"url":3125,"score":3126},"### Describe the Bug\n\nOrdering by a datetime field in my custom endpoint is giving the response:\r\n```\r\n{\r\n \"errors\": [\r\n {\r\n \"message\": \"rootSort.map is not a function\",\r\n \"extensions\": {\r\n \"code\": \"SERVICE_UNAVAILABLE\"\r\n }\r\n }\r\n ]\r\n}\r\n```\r\nThis is the code for the API:\r\n```\r\nconst query = {\r\n fields: ['*', 'layers.*'],\r\n filter: {\r\n ...(id && {\r\n id: { _eq: id },\r\n }),\r\n ...(createdBy && {\r\n createdBy: { _eq: createdBy },\r\n }),\r\n },\r\n page: +page || 1,\r\n limit: +limit || 100,\r\n sort: 'createdTimestamp',\r\n }\r\n\r\n flowersService\r\n .readByQuery(query)\r\n```\r\nRemoving `sort: 'createdTimestamp'` returns the results adding it returns the error. This is the field in the CMS:\r\n\r\n\r\n\n\n### To Reproduce\n\nCreate a datetime field in a custom endpoint and try to sort by it.\n\n### Errors Shown\n\n```\r\n{\r\n \"errors\": [\r\n {\r\n \"message\": \"rootSort.map is not a function\",\r\n \"extensions\": {\r\n \"code\": \"SERVICE_UNAVAILABLE\"\r\n }\r\n }\r\n ]\r\n}\r\n```\n\n### What version of Directus are you using?\n\n9.13.0\n\n### What version of Node.js are you using?\n\n16.14.2\n\n### What database are you using?\n\nPostgres 13\n\n### What browser are you using?\n\nChrome\n\n### How are you deploying Directus?\n\nRunning locally",[],14772,"Custom Endpoint Error when trying to order by Datetime field","2024-02-02T09:03:32Z","https://github.com/directus/directus/issues/14772",0.65800655,["Reactive",3128],{},["Set"],["ShallowReactive",3131],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fGZEv1CczJk9MC7XOu6F-rCy_RDXzqXwdmopEsHAA7T4":-1},"/directus/directus/22958"]