Skip to content

Commit ca1873d

Browse files
committed
fix: lint errors
1 parent 42e5508 commit ca1873d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/commands/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For more information, visit: https://docs.codifycli.com/commands/init`
1717

1818
static baseFlags= {
1919
...BaseCommand.baseFlags,
20-
path: { hidden: true },
20+
path: { hidden: true } as any,
2121
}
2222

2323
static override examples = [

src/orchestrators/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const InitializeOrchestrator = {
4141
ctx.log(`Save results to ${locationToSave}`)
4242
await reporter.hide();
4343

44-
const resourcesRaw = flattenedResults.filter((r) => userSelectedTypes.includes(r.core.type))
44+
const resourcesRaw = flattenedResults.filter((r) => r && userSelectedTypes.includes(r.core.type))
4545
.map((r) => ResourceConfig.fromJson(r!))
4646
.map((r) => r.raw);
4747

src/ui/components/default-component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ export function DefaultComponent(props: {
156156
{
157157
renderStatus === RenderStatus.PROMPT_INPUT && (
158158
<Box flexDirection='column'>
159-
<Text bold>{renderData.prompt}</Text>
160-
{ renderData.error && (<Text color='red'>{renderData.error}</Text>) }
159+
<Text bold>{(renderData as any).prompt}</Text>
160+
{ (renderData as any).error && (<Text color='red'>{(renderData as any).error}</Text>) }
161161
<TextInput onSubmit={(result) => emitter.emit(RenderEvent.PROMPT_RESULT, result)} placeholder='~/codify.json' />
162162
</Box>
163163
)

0 commit comments

Comments
 (0)