feat(SW-543): clean up
This commit is contained in:
@@ -4,12 +4,9 @@ import type {
|
||||
} from "@/server/routers/contentstack/base/output"
|
||||
|
||||
export function getValueFromContactConfig(
|
||||
data: ContactConfig,
|
||||
keyString?: string | null
|
||||
keyString: string,
|
||||
data: ContactConfig
|
||||
): string | undefined {
|
||||
if (!keyString) {
|
||||
return undefined
|
||||
}
|
||||
const [groupName, key] = keyString.split(".") as [
|
||||
ContactFieldGroups,
|
||||
keyof ContactConfig[ContactFieldGroups],
|
||||
|
||||
Reference in New Issue
Block a user