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