fix unused comp
This commit is contained in:
parent
c835cb2e37
commit
65605d9c6b
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { useState, useEffect } from "react";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/shared/components/ui/tabs";
|
||||
import { Tabs, TabsContent } from "@/shared/components/ui/tabs";
|
||||
import FormMultiSelect from "@/shared/components/forms/form-multi-select";
|
||||
|
||||
const satupetaCategory = [
|
||||
|
|
@ -43,13 +43,11 @@ export const getInitialMetadata = (initialValues: any = {}) => {
|
|||
}
|
||||
|
||||
return {
|
||||
// Mapping dari API Suggestion (jika ada)
|
||||
title: initialValues.title || "",
|
||||
abstract: initialValues.abstract || "",
|
||||
keywords: initialValues.keyword ? (Array.isArray(initialValues.keyword) ? initialValues.keyword.join(', ') : initialValues.keyword) : "",
|
||||
topicCategory: initialValues.metadata_category || "",
|
||||
|
||||
// Default Values Hardcoded Anda
|
||||
mapsetCategory: satupetaCategoryId[getIndexCategoryId(initialValues.mapset_category)] || "",
|
||||
dateCreated: today,
|
||||
status: "completed",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user