fix: Adding yearly title to preview page (#16441)
* initial commit * added year tag to the occurences field * Revert yarn.lock --------- Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com>
This commit is contained in:
co-authored by
Amit Sharma
parent
42953548b6
commit
b8d67c5a41
@@ -10,7 +10,7 @@ export const getRecurringFreq = ({
|
||||
t: TFunction;
|
||||
recurringEvent: RecurringEvent;
|
||||
}): string => {
|
||||
if (recurringEvent.interval && recurringEvent.freq) {
|
||||
if (recurringEvent.interval && recurringEvent.freq >= 0) {
|
||||
return t("every_for_freq", {
|
||||
freq: `${recurringEvent.interval > 1 ? recurringEvent.interval : ""} ${t(
|
||||
Frequency[recurringEvent.freq].toString().toLowerCase(),
|
||||
|
||||
@@ -58,8 +58,6 @@ model Host {
|
||||
@@index([eventTypeId])
|
||||
}
|
||||
|
||||
|
||||
|
||||
model EventType {
|
||||
id Int @id @default(autoincrement())
|
||||
/// @zod.min(1)
|
||||
|
||||
Reference in New Issue
Block a user