MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / onClose

Function onClose

console/src/components/SecretSelectionControl.tsx:278–292  ·  view source on GitHub ↗
(secretName?: string)

Source from the content-addressed store, hash-verified

276 const { data: secrets, isLoading, refetch } = useSecretsListPage({});
277
278 const onClose = async (secretName?: string) => {
279 onCloseModal();
280 if (!secretName) {
281 return;
282 }
283 const refetched = await refetch();
284 if (refetched.error) {
285 return;
286 }
287 const newSecrets = refetched.data?.rows;
288 const created = newSecrets?.find((row) => row.name === secretName);
289 if (created) {
290 selectField.onChange(created);
291 }
292 };
293
294 return (
295 <HStack gap={4}>

Callers 8

DeleteObjectMenuItemFunction · 0.70
handleConfirmFunction · 0.70
onSubmitFunction · 0.70
NewSecretModalFunction · 0.70
onBackFunction · 0.70
ConfirmationDialogFunction · 0.70
handleDeleteFunction · 0.70
StatusEventToastFunction · 0.50

Calls 1

findMethod · 0.45

Tested by

no test coverage detected