Skip to content

Commit 4e39274

Browse files
committed
Fix server console error when running 'docker ps'
This didn't actually break anything, but it's wrong regardless.
1 parent f1119fa commit 4e39274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interceptors/docker/docker-proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async function createDockerProxy(proxyPort: number, httpsConfig: { certPath: str
229229
const labelFilters = (
230230
_.isArray(filters.label)
231231
? filters.label
232-
: Object.keys(filters.label)
232+
: Object.keys(filters.label ?? {})
233233
.filter(key => !!(filters.label as _.Dictionary<boolean>)[key])
234234
);
235235
const projectFilter = labelFilters.filter(l => l.startsWith("com.docker.compose.project="))[0];

0 commit comments

Comments
 (0)