refactor: remove unnecessary imports and local state variable

This commit is contained in:
James George
2024-02-18 18:55:53 +05:30
committed by jamesgeorge007
parent c43e4fcefd
commit f4ea999d2d
2 changed files with 6 additions and 6 deletions

View File

@@ -224,7 +224,6 @@ const showModalEditProperties = ref(false)
const showConfirmModal = ref(false)
const editingCollectionIndexPath = ref<string>("")
const editingChildCollectionIndexPath = ref<string>("")
const editingRootCollectionName = ref<string>("")
const editingChildCollectionName = ref<string>("")
const editingRequestName = ref<string>("")
@@ -584,14 +583,14 @@ const editChildCollection = (payload: {
}) => {
const { collectionIndexPath, collectionName } = payload
editingChildCollectionIndexPath.value = collectionIndexPath
editingCollectionIndexPath.value = collectionIndexPath
editingChildCollectionName.value = collectionName
displayModalEditChildCollection(true)
}
const onEditChildCollection = async (newChildCollectionName: string) => {
const collectionIndexPath = editingChildCollectionIndexPath.value
const collectionIndexPath = editingCollectionIndexPath.value
const collectionHandleResult = await workspaceService.getCollectionHandle(
props.workspaceHandle,
@@ -1131,6 +1130,10 @@ const resolveConfirmModal = (title: string | null) => {
const resetSelectedData = () => {
editingCollectionIndexPath.value = ""
editingRootCollectionName.value = ""
editingChildCollectionName.value = ""
editingRequestName.value = ""
editingRequestIndexPath.value = ""
}
/**

View File

@@ -10,9 +10,6 @@ import { TestWorkspaceProviderService } from "./services/new-workspace/providers
import { PersistenceService } from "./services/persistence"
import "@fontsource-variable/inter"
import "@fontsource-variable/material-symbols-rounded"
import "@fontsource-variable/roboto-mono"
import "nprogress/nprogress.css"
import "../assets/scss/styles.scss"
import "../assets/scss/tailwind.scss"