Fix update remote field metadata (#5638)
Closes #5610. & update fetch-policy when fetching database on the remote databases show page to get freshest status.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ import { Breadcrumb } from '@/ui/navigation/bread-crumb/components/Breadcrumb';
|
||||
export const SettingsIntegrationDatabaseConnectionShowContainer = () => {
|
||||
const navigate = useNavigate();
|
||||
const { connection, integration, databaseKey, tables } =
|
||||
useDatabaseConnection();
|
||||
useDatabaseConnection({ fetchPolicy: 'network-only' });
|
||||
|
||||
const { deleteOneDatabaseConnection } = useDeleteOneDatabaseConnection();
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { useDatabaseConnection } from '@/settings/integrations/database-connecti
|
||||
|
||||
export const SettingsIntegrationEditDatabaseConnectionContainer = () => {
|
||||
const { connection, integration, databaseKey, tables } =
|
||||
useDatabaseConnection();
|
||||
useDatabaseConnection({});
|
||||
|
||||
if (!connection || !integration) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user