Skip to content

Commit 69d3482

Browse files
authored
Update storage_management.mdx (supabase#18385)
Handle the case in which the new `avatar_url` is set to null.
1 parent a17ab16 commit 69d3482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/components/MDX/storage_management.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ declare
6464
avatar_name text;
6565
begin
6666
if coalesce(old.avatar_url, '') <> ''
67-
and (tg_op = 'DELETE' or (old.avatar_url <> new.avatar_url)) then
67+
and (tg_op = 'DELETE' or (old.avatar_url <> coalesce(new.avatar_url, ''))) then
6868
-- extract avatar name
6969
avatar_name := old.avatar_url;
7070
select

0 commit comments

Comments
 (0)