Address comments

This commit is contained in:
Joshen Lim committed 2023-09-19 13:04:22 +08:00
1 parent 5de41f9382
commit 538f8db727
1 file changed
+4 -3
@@ -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()