diff --git a/.plasmic/plasmic/paziresh_24_search/PlasmicSearchResults.tsx b/.plasmic/plasmic/paziresh_24_search/PlasmicSearchResults.tsx index f5bedc45..f6f9bd4e 100644 --- a/.plasmic/plasmic/paziresh_24_search/PlasmicSearchResults.tsx +++ b/.plasmic/plasmic/paziresh_24_search/PlasmicSearchResults.tsx @@ -1263,6 +1263,8 @@ function PlasmicSearchResults__RenderFunc(props: { city_id: $props.location.city_id, lat: $props.location.lat, lon: $props.location.lon, + elementName: elementName, + elementContent: elementContent, query_id: $props.searchResultResponse.search .query_id, @@ -1422,6 +1424,43 @@ function PlasmicSearchResults__RenderFunc(props: { "runCodeSplunkEvent" ]; } + + $steps["invokeGlobalAction"] = false + ? (() => { + const actionArgs = { + args: [ + undefined, + (() => { + try { + return elementName; + } catch (e) { + if ( + e instanceof TypeError || + e?.plasmicType === + "PlasmicUndefinedDataError" + ) { + return undefined; + } + throw e; + } + })() + ] + }; + return $globalActions["Fragment.showToast"]?.apply( + null, + [...actionArgs.args] + ); + })() + : undefined; + if ( + $steps["invokeGlobalAction"] != null && + typeof $steps["invokeGlobalAction"] === "object" && + typeof $steps["invokeGlobalAction"].then === "function" + ) { + $steps["invokeGlobalAction"] = await $steps[ + "invokeGlobalAction" + ]; + } }} externalBookDesign={(() => { try { diff --git a/plasmic.lock b/plasmic.lock index 0c00ba1b..1debfa8a 100644 --- a/plasmic.lock +++ b/plasmic.lock @@ -340,12 +340,12 @@ { "type": "renderModule", "assetId": "XhSI4pxMLR3L", - "checksum": "508cdb1b9672fa1dd5fa1b2d3e313c54" + "checksum": "bceac67cb642e73a25d283cc623fa0e8" }, { "type": "cssRules", "assetId": "XhSI4pxMLR3L", - "checksum": "508cdb1b9672fa1dd5fa1b2d3e313c54" + "checksum": "bceac67cb642e73a25d283cc623fa0e8" }, { "type": "renderModule",