Skip to content

Commit 511d891

Browse files
author
priyanshu.solanki
committed
fix: resolve MAX_TAG_SLOTS error and z-index dropdown issue
- Replace MAX_TAG_SLOTS with totalSlots in document-tag-entry - Add z-index to SelectContent in base-tags-modal for proper layering
1 parent 3390f64 commit 511d891

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/base-tags-modal/base-tags-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export function BaseTagsModal({ open, onOpenChange, knowledgeBaseId }: BaseTagsM
412412
<SelectTrigger className='h-9'>
413413
<SelectValue placeholder='Select type' />
414414
</SelectTrigger>
415-
<SelectContent>
415+
<SelectContent className='z-[9999]'>
416416
{SUPPORTED_FIELD_TYPES.map((type) => {
417417
const { used, max } = getSlotUsageByFieldType(type)
418418
const isDisabled = used >= max

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/document-tag-entry/document-tag-entry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function DocumentTagEntry({
205205
)
206206
).length
207207

208-
if (tagDefinitions.length + currentNewTags >= MAX_TAG_SLOTS) {
208+
if (tagDefinitions.length + currentNewTags >= totalSlots) {
209209
// Don't allow creating new tags if we've reached the limit
210210
return
211211
}

0 commit comments

Comments
 (0)