mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-18 19:41:17 -05:00
fix: build
This commit is contained in:
@@ -205,6 +205,10 @@ export const cloneSegment = async (segmentId: string, surveyId: string): Promise
|
||||
throw new ResourceNotFoundError("segment", segmentId);
|
||||
}
|
||||
|
||||
if (!segment.workspaceId) {
|
||||
throw new DatabaseError("Segment is not associated with a workspace");
|
||||
}
|
||||
|
||||
const allSegments = await getSegments(segment.workspaceId);
|
||||
|
||||
// Find the last "Copy of" title and extract the number from it
|
||||
|
||||
Reference in New Issue
Block a user