Update local model stores in all mutations (#129)

This commit is contained in:
Gregory Schier authored and GitHub committed 2024-10-23 09:54:43 -07:00
1 parent c5e6d6f2cb
commit 7759649963
29 files changed
+270 -79

No files matched your search

@@ -45,6 +45,7 @@ export const EnvironmentEditDialog = function ({ initialEnvironment }: Props) {
const handleCreateEnvironment = async () => {
const e = await createEnvironment.mutateAsync();
if (e == null) return;
setSelectedEnvironmentId(e.id);
};
@@ -41,7 +41,7 @@ export const RecentResponsesDropdown = function ResponsePane({
},
{
key: 'copy',
label: 'Copy to Clipboard',
label: 'Copy Body',
onSelect: copyResponse.mutate,
leftSlot: <Icon icon="copy" />,
hidden: responses.length === 0,