mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-16 13:41:15 +01:00
Add env key to useRenderTemplate()
https://feedback.yaak.app/p/environment-preview-is-inaccurate
This commit is contained in:
1 parent
b529bab578
commit
456c8bd95f
1 file changed
+1
-1
@@ -10,7 +10,7 @@ export function useRenderTemplate(template: string) {
|
||||
return useQuery<string>({
|
||||
placeholderData: (prev) => prev, // Keep previous data on refetch
|
||||
refetchOnWindowFocus: false,
|
||||
queryKey: ['render_template', template],
|
||||
queryKey: ['render_template', template, workspaceId, environmentId],
|
||||
queryFn: () => renderTemplate({ template, workspaceId, environmentId }),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user