From d9af12168b9e83044008eca7ec791fd959fb5e44 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 21 Jan 2024 01:33:49 +0100 Subject: [PATCH] fix(files): Fix some type errors in TemplatePicker Signed-off-by: Ferdinand Thiessen --- apps/files/src/types.ts | 1 + apps/files/src/views/TemplatePicker.vue | 68 +++++++++++-------------- 2 files changed, 32 insertions(+), 37 deletions(-) diff --git a/apps/files/src/types.ts b/apps/files/src/types.ts index d2bfcaed0ee07..0e9dd6fb531bd 100644 --- a/apps/files/src/types.ts +++ b/apps/files/src/types.ts @@ -119,4 +119,5 @@ export interface TemplateFile { iconClass?: string mimetypes: string[] ratio?: number + templates?: Record[] } diff --git a/apps/files/src/views/TemplatePicker.vue b/apps/files/src/views/TemplatePicker.vue index 5f248602d4dca..93dc7ca574f9d 100644 --- a/apps/files/src/views/TemplatePicker.vue +++ b/apps/files/src/views/TemplatePicker.vue @@ -61,23 +61,27 @@