mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
fix(block-card): webhook URL never hydrates due to namespaced subBlock ID
getTrigger() namespaces condition-gated subBlock IDs (e.g. webhookUrlDisplay → webhookUrlDisplay_github_release_published). The block card's useMemo was checking for an exact match on 'webhookUrlDisplay', which never matched. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -640,7 +640,7 @@ const SubBlockRow = memo(function SubBlockRow({
|
||||
}, [subBlock?.id, rawValue, tables])
|
||||
|
||||
const webhookUrlDisplayValue = useMemo(() => {
|
||||
if (subBlock?.id !== 'webhookUrlDisplay' || !blockId) {
|
||||
if (!subBlock?.id?.startsWith('webhookUrlDisplay') || !blockId) {
|
||||
return null
|
||||
}
|
||||
const baseUrl = getBaseUrl()
|
||||
|
||||
Reference in New Issue
Block a user