File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
ce/components/command-palette/power-k/hooks
core/components/power-k/hooks Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11// local imports
2- import type { TPowerKContextTypeExtended } from ".. /types" ;
2+ import type { TPowerKContextType } from "@/components/power-k/core /types" ;
33
44type TArgs = {
5- activeContext : TPowerKContextTypeExtended | null ;
5+ activeContext : TPowerKContextType | null ;
66} ;
77
88export const useExtendedContextIndicator = ( _args : TArgs ) : string | null => null ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { useCycle } from "@/hooks/store/use-cycle";
66import { useModule } from "@/hooks/store/use-module" ;
77// plane web imports
88import { useExtendedContextIndicator } from "@/plane-web/components/command-palette/power-k/hooks/use-extended-context-indicator" ;
9- import type { TPowerKContextTypeExtended } from "@/plane-web/components/command-palette/power-k/types" ;
109import { EPageStoreType , usePageStore } from "@/plane-web/hooks/store" ;
1110// local imports
1211import type { TPowerKContextType } from "../core/types" ;
@@ -25,13 +24,13 @@ export const useContextIndicator = (args: TArgs): string | null => {
2524 const { getPageById } = usePageStore ( EPageStoreType . PROJECT ) ;
2625 // extended context indicator
2726 const extendedIndicator = useExtendedContextIndicator ( {
28- activeContext : activeContext as TPowerKContextTypeExtended ,
27+ activeContext,
2928 } ) ;
3029 let indicator : string | undefined | null = null ;
3130
3231 switch ( activeContext ) {
3332 case "work-item" : {
34- indicator = workItemIdentifier . toString ( ) ;
33+ indicator = workItemIdentifier ? workItemIdentifier . toString ( ) : null ;
3534 break ;
3635 }
3736 case "cycle" : {
You can’t perform that action at this time.
0 commit comments