From 538f8db72734da583f4d57bcfcff40737d28ef57 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 19 Sep 2023 13:04:22 +0800 Subject: [PATCH] Address comments --- studio/components/interfaces/Docs/Description.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/studio/components/interfaces/Docs/Description.tsx b/studio/components/interfaces/Docs/Description.tsx index e7543298078..a4f686417a2 100644 --- a/studio/components/interfaces/Docs/Description.tsx +++ b/studio/components/interfaces/Docs/Description.tsx @@ -1,9 +1,10 @@ +import { PermissionAction } from '@supabase/shared-types/out/constants' +import { noop } from 'lodash' import { useState } from 'react' import { Button, IconLoader } from 'ui' -import { PermissionAction } from '@supabase/shared-types/out/constants' -import { useStore, useCheckPermissions } from 'hooks' import AutoTextArea from 'components/to-be-cleaned/forms/AutoTextArea' +import { useCheckPermissions, useStore } from 'hooks' import { timeout } from 'lib/helpers' // Removes some auto-generated Postgrest text @@ -26,7 +27,7 @@ interface DescrptionProps { onChange: (value: string) => void } -const Description = ({ content, metadata, onChange = () => {} }: DescrptionProps) => { +const Description = ({ content, metadata, onChange = noop }: DescrptionProps) => { const { meta, ui } = useStore() const contentText = temp_removePostgrestText(content || '').trim()