mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix: Support the Clipboard API in modern browsers (#20058)
* fix: Support the Clipboard API in modern browsers * fix tests * PR comment * Improvements
This commit is contained in:
@@ -168,8 +168,7 @@ export const useExploreAdditionalActionsMenu = (
|
||||
if (!latestQueryFormData) {
|
||||
throw new Error();
|
||||
}
|
||||
const url = await getChartPermalink(latestQueryFormData);
|
||||
await copyTextToClipboard(url);
|
||||
await copyTextToClipboard(() => getChartPermalink(latestQueryFormData));
|
||||
addSuccessToast(t('Copied to clipboard!'));
|
||||
} catch (error) {
|
||||
addDangerToast(t('Sorry, something went wrong. Try again later.'));
|
||||
|
||||
Reference in New Issue
Block a user