From f4ea999d2d98ed65c746e335d97dd0501d741ca2 Mon Sep 17 00:00:00 2001 From: James George Date: Sun, 18 Feb 2024 18:55:53 +0530 Subject: [PATCH] refactor: remove unnecessary imports and local state variable --- .../src/components/new-collections/rest/index.vue | 9 ++++++--- packages/hoppscotch-common/src/index.ts | 3 --- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/hoppscotch-common/src/components/new-collections/rest/index.vue b/packages/hoppscotch-common/src/components/new-collections/rest/index.vue index 250355af0..11ed484b4 100644 --- a/packages/hoppscotch-common/src/components/new-collections/rest/index.vue +++ b/packages/hoppscotch-common/src/components/new-collections/rest/index.vue @@ -224,7 +224,6 @@ const showModalEditProperties = ref(false) const showConfirmModal = ref(false) const editingCollectionIndexPath = ref("") -const editingChildCollectionIndexPath = ref("") const editingRootCollectionName = ref("") const editingChildCollectionName = ref("") const editingRequestName = ref("") @@ -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 = "" } /** diff --git a/packages/hoppscotch-common/src/index.ts b/packages/hoppscotch-common/src/index.ts index 3a084c7ea..ec386200c 100644 --- a/packages/hoppscotch-common/src/index.ts +++ b/packages/hoppscotch-common/src/index.ts @@ -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"