Merge pull request #12143 from supabase/fix/database-tables-page-breaking-if-no-realtime-publications

Fix database tables page breaking if supabase_realtime publication is missing
This commit is contained in:
Terry Sutton
2023-02-03 16:46:56 -03:30
committed by GitHub
@@ -166,7 +166,7 @@ const TableList: FC<Props> = ({
<code className="text-sm">{x.size}</code>
</Table.td>
<Table.td className="hidden xl:table-cell text-center">
{realtimePublication.tables.find((table: any) => table.id === x.id) && (
{(realtimePublication?.tables ?? []).find((table: any) => table.id === x.id) && (
<div className="flex justify-center">
<IconCheck strokeWidth={2} />
</div>